此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

RawXML

RawXML["string"]
represents a raw string fragment of XML that can be used inside a SymbolicXML expression.
Needs["XML`"]
A raw string fragment of XML:
In[2]:=
Click for copyable input
Out[2]=
A composed SymbolicXML expression with an embedded fragment of RawXML:
In[3]:=
Click for copyable input
Out[3]=
The composite expression exports as XML:
In[4]:=
Click for copyable input
Out[4]=
The composite expression and variants are recognized as SymbolicXML:
In[5]:=
Click for copyable input
Out[5]=
Using ToSymbolicXML expands any RawXML fragments into SymbolicXML fragments, if possible:
In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=