How to parse a XML string instead of XML doc in c using libxml2 library How to parse a XML string instead of XML doc in c using libxml2 library xml xml

How to parse a XML string instead of XML doc in c using libxml2 library


You can use xmlParseDoc(), which will take a null terminated string (of xmlChar / unsigned char) and parse it exactly as if it were read from a file using xmlParseFile().