|
SOLUTIONS
|
XML 程序包 符号
InitializeXMLParser
creates an XMLParser object that has a list of entities corresponding to the contents of
and can be used on XML documents that have a root element root.
更多信息更多信息
- To use
, you first need to load the XML Package using Needs["XML`"].
can be used to preload a DTD. If many documents with the same DTD are to be loaded repeatedly, a pre-initialized parser can speed up processing time.
范例范例打开所有单元关闭所有单元
基本范例 (1)基本范例 (1)
| In[1]:= |
Initialize a MathML parser (with a preloaded DTD):
| In[2]:= |
| Out[2]= |
The pre-initialized MathML parser is much faster than reloading the DTD:
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
For validation, a DOCTYPE declaration does not need to be present when using a pre-initialized parser:
| In[5]:= |
| Out[5]= | ![]() |
ReleaseXMLParser frees up resources when the parser is done:
| In[6]:= |
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »



