libxml2求助?
小弟想求助libxml2几个函数,望达人给与帮助!谢谢先~
1.怎样解析一个buffer中xml数据的内容 ,比如一个buffer中数据格式为:
<指定的其他内容><xml格式的内容><指定的其他内容>
现在想解析buffer中的<xml格式的内容>请问可用什么函数?
2.我现建立了一个xmlDocPtr类型的文档,比如文档中的内容为 <head><senderCode>1</senderCode> <gateCode>2</gateCode> <msgNo>3</msgNo> <msgType>4</ msgType > <priority>5<priority> </head>
要是我想把这些内容拷贝到一个buffer中,请问该使用什么函数?