File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,6 @@ or as base classes.
6161
6262.. class :: XMLGenerator(out=None, encoding='iso-8859-1', short_empty_elements=False)
6363
64- .. warning ::
65- :class: `!XMLGenerator ` does not validate element or
66- attribute names. Callers must ensure that names passed to APIs conform
67- to `XML name rules <https://www.w3.org/TR/xml/#NT-Name >`__ if passing
68- untrusted input. Character data and attribute values are escaped,
69- but not validated.
70-
7164 This class implements the :class: `~xml.sax.handler.ContentHandler ` interface
7265 by writing SAX
7366 events back into an XML document. In other words, using an :class: `XMLGenerator `
@@ -78,6 +71,13 @@ or as base classes.
7871 content: if ``False `` (the default) they are emitted as a pair of start/end
7972 tags, if set to ``True `` they are emitted as a single self-closed tag.
8073
74+ .. warning ::
75+ :class: `!XMLGenerator ` does not validate element or
76+ attribute names. Callers must ensure that names passed to APIs conform
77+ to `XML name rules <https://www.w3.org/TR/xml/#NT-Name >`__ if passing
78+ untrusted input. Character data and attribute values are escaped,
79+ but not validated.
80+
8181 .. versionchanged :: 3.2
8282 Added the *short_empty_elements * parameter.
8383
You can’t perform that action at this time.
0 commit comments