This object is capable of creating new XML documents as well as parsing existing documents for data elements. When creating a new XML document, you simply add the elements and the take the XMLString$ output as a formatted XML document Unlike HTML, XML has no predefined elements and attributes. As the document author you are responsible for creating a meaningful document. Programmer's Notes:
Some helpful web sites:
Understanding XML:
|
PROPERTY Declaration$ Defines the XML version and character encoding used in the document. It is the first line of the document. |
PROPERTY SuppressDeclaration Set to "True" to suppress the generation of the XML declaration at the beginning of the document. This is typically done when the document will be combined or embedded into another XML document. |
PROPERTY Version$ Version number from the XML Header |
PROPERTY Encoding$ Encoding from the XML Header |
PROPERTY Error$ If an error occurs while importing a file or string, this property will contain the description of the error. |
PROPERTY XMLString$ Use this property to pull the XML document back out of the object as a single string. |
FUNCTION LoadEncodedString(_XMLString$) Parse the XMLString$ variable as a complete XML document that has been encoded using the HTML escape sequences for <, >, ", and &. This is typically done when the XMLString$ is part of a payload for a SOAP element | ||||||
| ||||||
| ||||||
FUNCTION LoadFile(_XMLDoc$) Parse the XMLDoc$ file. | ||||||
| ||||||
| ||||||
FUNCTION LoadString(_XMLString$) Parse the XMLString$ variable as a complete XML document. | ||||||
| ||||||
| ||||||
FUNCTION NewDocument() This method will initialize the object for creation of a new document. | ||||||
FUNCTION NewDocument(Import) This method will initialize the object for creation of a new document. | ||||||
| ||||||
FUNCTION UTFDate$(JulianDate) This function returns the specified date in the Universal Time Format: YYYY-MM-DD | ||||||
| ||||||
| ||||||
FUNCTION UTFDate$(LongDate$) This function returns the specified date in the Universal Time Format: YYYY-MM-DD | ||||||
| ||||||
| ||||||
FUNCTION UTFDateTime$(JulianDate) This method returns the specified date and time in the Universal Time Format (UTF) | ||||||
| ||||||
| ||||||
FUNCTION UTFDateTime$(JulianDate, Time) This method returns the specified date and time in the Universal Time Format (UTF) | ||||||
| ||||||
| ||||||
FUNCTION UTFDateTime$(LongDate$) This method returns the specified date and time in the Universal Time Format (UTF) | ||||||
| ||||||
| ||||||
FUNCTION UTFDateTime$(LongDate$, Time) This method returns the specified date and time in the Universal Time Format (UTF) | ||||||
| ||||||
|
![]() |