Skip to main content
Version: Next

DOM Get XML information

DOM Get XML information ( elementRef ; xmlInfo ) : Text

ParameterTypeDescription
elementRefTextXML root element reference
xmlInfoIntegerType of information to get
Function resultTextValue of the XML information

Description

The DOM Get XML information command retrieves diverse information about the XML element designated by elementRef.

In xmlInfo, pass a code indicating the type of information to be retrieved. You can use the following predefined constants, located in the XML theme:

ConstantTypeValueComment
DOCTYPE NameInteger3Name of the root element as defined in the DOCTYPE marker
Document URIInteger6URI of the DTD
EncodingInteger4Encoding used (UTF-8, ISO...)
PUBLIC IDInteger1Public identifier (FPI) of the DTD to which the document conforms (if the DOCTYPE xxx PUBLIC tag is present).
SYSTEM IDInteger2System identifier
VersionInteger5Accepted XML version

See also

XML GET ERROR

Properties

Command number721
Thread safe