xmlwriter
Classes:
-
XMLWriter–A simple XML writer that writes to a stream.
XMLWriter
XMLWriter(stream: IO[bytes], namespace_manager: NamespaceManager, encoding: str | None = None, decl: int = 1, extra_ns: dict[str, Namespace] | None = None)
A simple XML writer that writes to a stream.
Methods:
-
attribute– -
element–Utility method for adding a complete simple element
-
namespaces– -
pop– -
push– -
qname–Compute qname for a uri using our extra namespaces,
-
text–
Attributes:
Source code in rdflib/plugins/serializers/xmlwriter.py
__close_start_tag
__get_indent
attribute
element
element(uri: str, content: str, attributes: dict[URIRef, str] = {}) -> None
Utility method for adding a complete simple element
Source code in rdflib/plugins/serializers/xmlwriter.py
namespaces
Source code in rdflib/plugins/serializers/xmlwriter.py
pop
Source code in rdflib/plugins/serializers/xmlwriter.py
push
qname
Compute qname for a uri using our extra namespaces, or the given namespace manager