Skip to content

Commit 4b4c15a

Browse files
committed
Move warning to be after description
1 parent e845206 commit 4b4c15a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Doc/library/xml.sax.utils.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)