DOM Get XML information

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2004 (Modified)


DOM Get XML information (elementRef; xmlInfo) String

ParameterTypeDescription
elementRefStringXML root element reference
xmlInfoLongintType of information to get
Function resultStringValue of the XML information

Description

The DOM Get XML information command is used to retrieve 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:

ConstantTypeValue
PUBLIC IDLongint1
SYSTEM IDLongint2
DOCTYPE NameLongint3
EncodingLongint4
VersionLongint5
Document URILongint6

These constants indicate the following information:

PUBLIC ID: Public identifier (FPI) of the DTD to which the document conforms (if the DOCTYPE xxx PUBLIC tag is present).

SYSTEM ID: System identifier.

DOCTYPE Name: Name of the root element as defined in the DOCTYPE marker.

Encoding: Encoding used (UTF-8, ISO...).

Version: Accepted XML version.

Document URI: URL of the DTD.

See Also

GET XML ERROR.

Constants

XML theme.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next