YedXml - Get_XML_Buffer

NAME:
Get_XML_Buffer

SYNOPSIS:
SINT Get_XML_Buffer(void *pvO,SCHAR *pscFile,SINT siFlagPreserve);

DESCRIPTION:
The method loads the XML file pscFile into internal memory area of the object instance pointed to pvO. The XML buffer loaded into memory will be used in any subsequent operation performed by object instance. siFlagPreserve allows user to handle content of XML buffer in this way:

XML_PRESERVE
Mantain XML buffer loaded from file exactly as it is, with all escape characters like '\n' and '\t'.

XML_NOTPRESERVE
Drop all unnecessary escape characters after loading XML buffer from file.

 

RETURN VALUE:
The method returns YPRSUCCESS in case of correct execution. In case of error, it returns:

YPRNOMEM
Memory unavailable to perform operation.

YPRLOADERR
Error in loading file into memory. Check file name, path or size.

YPRNOMEM
Memory unavailable to perform operation.


http://yed.sourceforge.net