version 2004 (Modified)
DOM Get XML information (elementRef; xmlInfo) String
| Parameter | Type | Description | |
| elementRef | String | XML root element reference | |
| xmlInfo | Longint | Type of information to get | |
| Function result | String | Value 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:
| Constant | Type | Value |
| PUBLIC ID | Longint | 1 |
| SYSTEM ID | Longint | 2 |
| DOCTYPE Name | Longint | 3 |
| Encoding | Longint | 4 |
| Version | Longint | 5 |
| Document URI | Longint | 6 |
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
Constants
XML theme.