Lasso Soft Inc. > Home

[XML]

The [XML] tag casts a string to the XML data type. It requires one paramater which is a string containing valid XML data. Once the data has been parsed it can then be inspected using the member tags of the XML data type.

[XML->Children] will return an array of XML objects representing the immediate children of the root tag of the XML data.

[XML->Attributes] will return an array of pairs representing the attributes of the root tag.

[XML->Name] will return the name of the root tag.

[XML->Contents] will return the contents of the root tag as a string.

If the -DTD parameter is specified with a valid XML DTD as its value then the XML data will be validated against the DTD before being returned.

  • Syntax
  • Parameters
[XML: XML Data]

[XML: XML Data, -DTD=DTD String]
Required Parameters
XML Data A string containing the XML data which is to be parsed.
Optional Parameters
-DTD An optional string containing a DTD against which the XML data should be validated.
Examples

See the XML chapter in the Lasso 8 Language Guide for examples of how to use this tag. Many of the XML examples require lengthy descriptions and the use of several related tags and are better suited to presentation in the Language Guide. This tag is documented on page 522.

Tag Link [XML] Category XML
Type Substitution Data Source Any
Support Preferred Version 6.0
Output Type XML Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft