Skip to main content

Module xml

Module xml 

Source
Expand description

Shared OOXML namespace and attribute helpers.

Enums§

XmlLexicalError
A strict XML 1.0 lexical validation failure.

Constants§

MC_NS
Markup Compatibility namespace.
R_NS
Relationships namespace.

Functions§

get_attr
Return a named attribute value, matching with or without a prefix.
is_xml_1_0_character
Whether XML 1.0 can carry character, the Char production.
local_name
Return the local portion of a possibly prefixed XML name.
matches_local_name
Check whether an XML name has the expected local portion.
reject_non_xml_characters
Refuses value when it holds a character XML 1.0 cannot carry, not even escaped, naming the character and its one-based position, as python-docx and python-pptx refuse such a string. what names the value in the message.
validate_strict_xml_1_0
Validate the format-neutral lexical rules required by strict OOXML readers.