March 2003
Intermediate to advanced
656 pages
39h 30m
English
getQNames
attr.getQNames( )
Returns the list of qualified names of all attributes.
For startElement, each
qname is the same string as the
corresponding name. For startElementNS, a
qname is the corresponding local name for
attributes not associated with a namespace (i.e., attributes whose
uri is None);
otherwise, the qname is the string
prefix:name
used in the document’s text for this attribute.
The parser may reuse in later processing the
attr object that it passes to methods
startElement and
startElementNS. If you need to keep a copy of the
attributes of an element, call
attr
.copy( ) to get the
copy.
Read now
Unlock full access