【发布时间】:2011-01-13 22:01:26
【问题描述】:
我的问题很简单。我有一个 XercesDOMParser,所以我可以通过 getDocument() 访问存储在其中的 DOMDocument。
我想获取代表树的 xml 字符串。
正确的叫法是什么?我假设库提供了一个有效的运算符/函数。
【问题讨论】:
我的问题很简单。我有一个 XercesDOMParser,所以我可以通过 getDocument() 访问存储在其中的 DOMDocument。
我想获取代表树的 xml 字符串。
正确的叫法是什么?我假设库提供了一个有效的运算符/函数。
【问题讨论】:
我使用 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.
【讨论】: