Skip to main content
Version: 20 R7 BETA

DOM Get XML information

DOM Get XML information ( elementRef ; xmlInfo ) -> Function result

ParameterTypeDescription
elementRefTextXML root element reference
xmlInfoIntegerType of information to get
Function resultStringValue 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 NameLongint3Name of the root element as defined in the DOCTYPE marker
Document URILongint6URI of the DTD
EncodingLongint4Encoding used (UTF-8, ISO...)
PUBLIC IDLongint1Public identifier (FPI) of the DTD to which the document conforms (if the DOCTYPE xxx PUBLIC tag is present).
SYSTEM IDLongint2System identifier
VersionLongint5Accepted XML version

See also

XML GET ERROR