我的问题很简单。我有一个XercesDOMParser,所以我可以通过getDocument()访问存储在其中的DOMDocument。
我想要获得表示树的xml字符串。
正确的叫法是什么?我假设库提供了一个有效的运算符/函数。
发布于 2011-01-14 06:19:54
我使用Xerces-C已经有一段时间了,但我会看看http://xerces.apache.org/xerces-c/apiDocs-2/classDOMWriter.html,它解决了编码和其他问题(这些问题很容易被忽视)。
我会先看看
virtual XMLCh * writeToString (const DOMNode &nodeToWrite)=0
Serialize the specified node as described above in the description of DOMWriter.https://stackoverflow.com/questions/4685812
复制相似问题