paper-pptxAPI referenceoxml.ns
NamespacePrefixedTag
paper-pptx 0.2.0 API reference
Value object that knows the semantics of an XML tag having a namespace prefix.
NamespacePrefixedTag(nstag: str)Attributes
clark_name
attributeclark_namelocal_part
attributelocal_partReturn the local part of the tag as a string. E.g. 'foobar' is returned for tag 'f:foobar'.
nsmap
attributensmapReturn a dict having a single member, mapping the namespace prefix of this tag to it's namespace name (e.g. {'f': 'http://foo/bar'}). This is handy for passing to xpath calls and other uses.
nspfx
attributenspfxReturn the string namespace prefix for the tag, e.g. 'f' is returned for tag 'f:foobar'.
nsuri
attributensuriReturn the namespace URI for the tag, e.g. 'http://foo/bar' would be returned for tag 'f:foobar' if the 'f' prefix maps to 'http://foo/bar' in _nsmap.
Functions
from_clark_name
funcfrom_clark_name(clark_name: str) -> NamespacePrefixedTagparamclark_namestrReturns
pptx.oxml.ns.NamespacePrefixedTag