且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用libxml2库来分析在C XML字符串,而不是XML文档

更新时间:2022-02-17 05:16:42

您可以使用 xmlParseDoc() ,这将需要一个空终止(的XMLCHAR / unsigned char型)串并解析它完全一样,如果它是从使用文件xmlParseFile()$c$c>.

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().