Xbasic
showxml Function
Syntax
V showXML(C xml [,L flagParseElementsAndAttributes ])
Arguments
- xmlCharacter
XML to display.
- flagParseElementsAndAttributesLogical
Default = .t.. If .t., the __A5_elementContent and __A5_Xml_Manifest properties will be shown. If .f., they will be hidden. See *property_from_xml() for more information.
Description
Show an XML document and parse into an Xbasic dot variable.
Discussion
The showXML() function is a utility Xbasic function that is helpful in understanding the structure of an XML Document.
dim xml as c =<<%xml% <name city-name="boston" state-name="ma" age="27"> Fred Smith </name> %xml% showXML(xml)
Discussion
The image below shows the user interface displayed by the ShowXML() function.
The first image shows the XML pane where the raw XML is displayed. The second image shows the Xbasic Properties pane is shown where a tree view of the Xbasic variable (into which the XML has been parsed) is shown.
Limitations
Development/Desktop Environment Only