YedXml - Load_Tree
SINT Load_Tree(void *pvO);
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.
The method returns the total length of root XML element. In case of error, it returns:
XML source buffer not previously loaded with Get_XML_Buffer method.
XML source buffer has invalid length.
XML source buffer has comment tag ( '<!--' ) not properly closed.
XML source buffer has no more elements to load. Although this case can seem normal, it shows a semantic problem in XML source buffer.
Can't find closing bracket of XML element.
Try to copying buffer in a static memory area that cannot contain it. Expand the LEN_XML_STATIC_BUFFER constant and rebuild Yed.
Attribute value of an XML element is not between single or double quote.
Tag termination is expected but not found.
Memory unavailable to perform operation.