YedXml - Load_Tree

NAME:
Load_Tree

SYNOPSIS:
SINT Load_Tree(void *pvO);

DESCRIPTION:
The method loads memory tree of XML source buffer in object instance pvO. Loading operation does not involve strict XML validation process, although the internal parser performs several controls during its activity.

RETURN VALUE:
The method returns the total length of root XML element. In case of error, it returns:

YPRNOBUFFER
XML source buffer not previously loaded with Get_XML_Buffer method.

YPRNOLEN
XML source buffer has invalid length.

YPRINVALIDREM
XML source buffer has comment tag ( '<!--' ) not properly closed.

YPRNOMORELEMENT
XML source buffer has no more elements to load. Although this case can seem normal, it shows a semantic problem in XML source buffer.

YPRNOCLOSE
Can't find closing bracket of XML element.

YPRLENINVALID
Try to copying buffer in a static memory area that cannot contain it. Expand the LEN_XML_STATIC_BUFFER constant and rebuild Yed.

YPRINVALIDVALUEATTR
Attribute value of an XML element is not between single or double quote.

YPRMISSINGTERM
Tag termination is expected but not found.

YPRNOMEM
Memory unavailable to perform operation.


http://yed.sourceforge.net