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 , 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.

范例范例打开所有单元关闭所有单元

基本范例  (1)基本范例  (1)

In[1]:=
Click for copyable input

The portion of the SymbolicXML statement is malformed. returns False:

In[2]:=
Click for copyable input
Out[2]=

With a correctly formed option, returns True:

In[3]:=
Click for copyable input
Out[3]=