models.XMLField doesn't work as advertised
There are two errors currently in the (documentation of)
- The documentation claims that
schema_path is a required argument, but it is not.
- Regardless of whether
schema_path is given,
models.XMLField does not actually perform any validation. It works no differently than an ordinary
TextField, succeeding even if the input is not XML at all.
Tickets #3094 and #5620 are likely related to this bug. I reference them for historical interest, since it seems that it was once assumed that #3094 would to be fixed before 1.0.
Change History (5)
Database layer (models, ORM) →