xml.dom.pulldom
— 支持构建部分 DOM (文档对象模型) 树
¶
2.0 版新增。
xml.dom.pulldom
allows building only selected portions of a Document Object Model representation of a document from SAX events.
警告
The
xml.dom.pulldom
module is not secure against maliciously constructed data. If you need to parse untrusted or unauthenticated data see
XML vulnerabilities
.
xml.dom.pulldom.
PullDOM
(
[
documentFactory
]
)
¶
xml.sax.handler.ContentHandler
implementation that …
xml.dom.pulldom.
DOMEventStream
(
stream
,
parser
,
bufsize
)
¶
…
xml.dom.pulldom.
SAX2DOM
(
[
documentFactory
]
)
¶
xml.sax.handler.ContentHandler
implementation that …
xml.dom.pulldom.
parse
(
stream_or_string
[
,
parser
[
,
bufsize
]
]
)
¶
…
xml.dom.pulldom.
parseString
(
string
[
,
parser
]
)
¶
…
xml.dom.pulldom.
default_bufsize
¶
Default value for the
bufsize
参数用于
parse()
.
Changed in version 2.1:
The value of this variable can be changed before calling
parse()
and the new value will take effect.
DOMEventStream.
getEvent
(
)
¶
…
DOMEventStream.
expandNode
(
node
)
¶
…
DOMEventStream.
reset
(
)
¶
…