xmltest (<file> {,<num>} )
string
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.
<file>
The name of the file to be tested. The file may or may not exist.
<num>
Whether full validation is to be done on the file. 1 implies validate, 0
(the default) implies do not validate. If validation is performed and the
file is found not to be well-formed, this function returns an empty string.
XML parsing is performed using the Xerces SAX parser.
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
Commands: |