IsXML

Determines whether a string is well-formed XML text.

IsXML( value )

Returns: Boolean

Argument Description
value
any, required

A string containing the XML document text

Examples

globalVar = '<Earth>
 <required>
  <name>Trees</name>
 </required>
 <required>
  <name>Water</name>
 </required>
 <required>
  <name>Agriculture</name>
 </required>
 <required>
  <name>Humanity</name>
 </required>
</Earth>';
writeOutput(isXml(globalVar));

See also