XmlParseDocTxb – Function

Fixed_Image

Description

This function parses the XML text contained in a text buffer and allocates a new XML document to store it. The application is responsible for releasing the allocated memory by calling the XmlFreeDoc function.

attentionAttention

XML parsing and writing functions support only 8 bit encoding features. This can be UTF8 or ANSI (ISO-8859-1) encoding. Some additional functions will be provided for conversion between UTF8 and ANSI formats.

Inputs

Input

Data type

Description

hTxb

DINT

Handle of a text buffer containing XML text.

Outputs

Output

Data type

Description

hRootTag

DINT

Handle of the root tag. Can be used as a tag handle for exploringment, or as a complete document handle for releasing the memory.

Fixed_Image See also

Memory management / Miscellaneous

XmlManager: Main gatherer of XML data in memory.

XmlLastError: Get detailed error report about last call.

Reading/writing documents

XmlNewDoc: Create an empty XML document.

XmlFreeDoc: Release a XML document from memory.

XmlParseDocTxb: Parse a XML document from text buffer.

XmlParseDocFile: Parse a XML document form file.

XmlWriteDocTxb: Format XML data to text buffer.

XmlWriteDocFile: Format XML data to file.

Exploring a XML document

XmlGetTagName: Get name of a XML tag.

XmlCheckTagName: Test the name of a XML tag.

XmlGetTagCont: Get tag contents as STRING.

XmlGetTagContT: Get tag contents as text buffer.

XmlGetTagAttrib: Get tag attribute.

XmlFirstChild: Start enumerating child tags.

XmlNextChild: Enumerate child tags

Building a XML document

XmlSetTagAttrib: Set tag attribute.

XmlSetTagCont: Set tag contents with STRING.

XmlSetTagContT: Set tag contents with text buffer.

XmlAddChild: Add a child tag.

Exchanging variables using their name

XmlGetSybValue: Get variable value using its symbol.

XmlSetSybValue: Set variable value using its symbol.


Created with the Personal Edition of HelpNDoc: Streamline Your Documentation Process with HelpNDoc's Intuitive Interface