Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/xml.sax.utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@

.. class:: XMLGenerator(out=None, encoding='iso-8859-1', short_empty_elements=False)

.. warning::
:class:`~xml.sax.handler.XMLGenerator` does not validate element or

Check warning on line 65 in Doc/library/xml.sax.utils.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

py:class reference target not found: xml.sax.handler.XMLGenerator [ref.class]
attribute names. Callers must ensure that names passed to APIs conform
to `XML name rules <https://www.w3.org/TR/xml/#NT-Name>`__ if passing
untrusted input. Character data and attribute values are escaped,
but not validated.

This class implements the :class:`~xml.sax.handler.ContentHandler` interface
by writing SAX
events back into an XML document. In other words, using an :class:`XMLGenerator`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add warning about lack of validation for ``xml.sax.saxutils.XMLGenerator``.
Loading