Paper Office
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_name

local_part

attributelocal_part

Return the local part of the tag as a string. E.g. 'foobar' is returned for tag 'f:foobar'.

nsmap

attributensmap

Return 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

attributenspfx

Return the string namespace prefix for the tag, e.g. 'f' is returned for tag 'f:foobar'.

nsuri

attributensuri

Return 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) -> NamespacePrefixedTag
paramclark_namestr

Returns

pptx.oxml.ns.NamespacePrefixedTag

On this page