xmlReadMemory
xmlReadMemory is a convenience routine in the libxml2 XML parsing library that constructs an xmlDocPtr from a block of XML data held in memory. It is typically used when an application has already loaded XML into a buffer and wishes to parse it without writing to the disk. The routine signature is
xmlDocPtr xmlReadMemory(const char *c, int size, const char *URL, const char *encoding, int options).
The first argument is a pointer to the XML data, the second specifies the number of bytes
On success xmlReadMemory returns a pointer to a newly allocated xmlDoc structure that represents the parsed
```
const char *data = "<book><title>Example</title></book>";
xmlDocPtr doc = xmlReadMemory(data, strlen(data), "example.xml", NULL, XML_PARSE_RECOVER);
```
The returned document can be manipulated with the standard libxml2 DOM API and freed with xmlFreeDoc when