Trees | Indices | Help |
|
---|
Facility to use the Expat parser to load a minidom instance from a string or file.
This avoids all the overhead of SAX and pulldom to gain performance.
3
4
9
1
2
3
4
DOMImplementation()
{
'
CDATA
'
:
<TypeInfo 'cdata'>,
'
ENTITIES
'
:
<Typ...
(
1,
2,
3)
'
http://xml.python.org/
...
'
<!DOCTYPE wrapper\n %s [\n <!E
...
Imports: xmlbuilder, minidom, Node, EMPTY_NAMESPACE, EMPTY_PREFIX, XMLNS_NAMESPACE, expat, _append_child, _set_attribute_node, NodeFilter, NodeList, EmptyNodeList, defproperty, StringTypes
Parse a document, returning the resulting Document node.
'file' may be either a file name or an open file object.
Parse a fragment of a document, given the context from which it was originally extracted. context should be the parent of the node(s) which are in the fragment.
'file' may be either a file name or an open file object.
Parse a fragment of a document from a string, given the context from which it was originally extracted. context should be the parent of the node(s) which are in the fragment.
{
'
CDATA
'
:
<TypeInfo 'cdata'>,
'
ENTITIES
'
:
<TypeInfo 'entities'>,
'
ENTITY
'
:
<TypeInfo 'entity'>,
'
ENUM
'
:
<TypeInfo 'enumeration'>,
'
ID
'
:
<TypeInfo 'id'>,
'
IDREF
'
:
<TypeInfo 'idref'>,
'
IDREFS
'
:
<TypeInfo 'idrefs'>,
'
NMTOKEN
'
:
<TypeInfo 'nmtoken'>,
...
'
http://xml.python.org/entities/fragment-builder/internal
'
'''
<!DOCTYPE wrapper
%s [
<!ENTITY fragment-builder-internal
SYSTEM "http://xml.python.org/entities/fragment-builder/internal">
%s
]>
<wrapper %s
>&fragment-builder-internal;</wrapper>
'''
Trees | Indices | Help |
|
---|