开发者

Parse XML with C

开发者 https://www.devze.com 2023-03-13 04:54 出处:网络
Hi I am trying to use C to parse xml, but all the examples I can find are using a file to get the xml, I have the xml already loaded into a variable and I want libxml2开发者_JAVA技巧 to take the xml f

Hi I am trying to use C to parse xml, but all the examples I can find are using a file to get the xml, I have the xml already loaded into a variable and I want libxml2开发者_JAVA技巧 to take the xml from there instead of a file.... but I can't figure out how!

Any help would be appreciated thanks


Have a look at this example: using XmlReadMemory


Look at the signature of xmlParseDoc function.

It takes const xmlChar * cur as a parameter, and xmlChar is actually defined as unsigned char here

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号