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

SymbolicXMLQ

SymbolicXMLQ[expr]
returns True if the expression expr matches some basic patterns for a SymbolicXML expression and False otherwise.
SymbolicXMLQ[expr, True]
performs a complete test on expr to determine if it is a well-formed SymbolicXML expression.
SymbolicXMLQ[expr, False]
is equivalent to SymbolicXMLQ[expr].
  • To use SymbolicXMLQ, you first need to load the XML Package using Needs["XML`"].
  • This is not a guarantee that the document is well formed, nor does it give hints about validation.
Needs["XML`"]
The {attribute->value} portion of the SymbolicXML statement is malformed. SymbolicXMLQ returns False:
In[2]:=
Click for copyable input
Out[2]=
With a correctly formed option, SymbolicXMLQ returns True:
In[3]:=
Click for copyable input
Out[3]=