Function: xmltest( )

Syntax

xmltest (<file> {,<num>} )

Type

string

Returns

The outermost tag name from an xml file. If the file does not exist or is not an acceptable xml file, an empty string is returned.

Parameters

Notes

XML parsing is performed using the Xerces SAX parser.

Examples

If the outermost tag in this file is <mydata>, this example will return a value "mydata".

string tag = xmltest(myfile.xml)

Validate an xml file.

if (xmltest(myfile.xml,1)) !File is valid

See Also

Commands:

xmlread