DOM Get XML information ( elementRef : Text ; xmlInfo : Integer ) : Text
| Parameter | Type | | Description |
|---|
| elementRef | Text | → | XML root element reference |
| xmlInfo | Integer | → | Type of information to get |
| Function result | Text | ← | Value of the XML information |
History
| Release | Changes |
|---|
| <6 | Created |
| 2004 | Modified |
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:
| Constant | Type | Value | Comment |
|---|
| DOCTYPE Name | Integer | 3 | Name of the root element as defined in the DOCTYPE marker |
| Document URI | Integer | 6 | URI of the DTD |
| Encoding | Integer | 4 | Encoding used (UTF-8, ISO...) |
| PUBLIC ID | Integer | 1 | Public identifier (FPI) of the DTD to which the document conforms (if the DOCTYPE xxx PUBLIC tag is present). |
| SYSTEM ID | Integer | 2 | System identifier |
| Version | Integer | 5 | Accepted XML version |
XML GET ERROR
| |
|---|
| Command number | 721 |
| Thread safe | yes |