IsXML()

Determines whether a string is well-formed XML text.

IsXML( value=any, xmlFeatures=struct );

Returns: Boolean

Argument Description
value
any, required

A string containing the XML document text

xmlFeatures
struct, optional

A struct of xmlFeatures directives to override defaults

Introduced: 5.4.2.20

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