creates an XMLParser object that has a list of entities corresponding to the contents of "file" and can be used on XML documents that have a root element root.
Basic Examples (1)
Initialize a MathML parser (with a preloaded DTD):
The pre-initialized MathML parser is much faster than reloading the DTD:
For validation, a DOCTYPE declaration does not need to be present when using a pre-initialized parser:
ReleaseXMLParser frees up resources when the parser is done: