【发布时间】:2011-11-09 14:49:51
【问题描述】:
xerces-c++ 库是否可以从以下 XML 字符串或文件中仅获取目标节点的值?
<GET>
<Context>
<Destination>DATA
<Commands>
<GRP>VAL
<CAT>SET
<book genre="autobiography" publicationdate="1981" ISBN="1-861003-11-0">
<title>The Autobiography of Benjamin Franklin</title>
<author>
<first-name>Benjamin</first-name>
<last-name>Franklin</last-name>
</author>
<price>8.99</price>
</book>
</CAT>
</GRP>
</Commands>
</Destination>
</Context>
</GET>
如果可能的话,给出一个示例代码。
【问题讨论】:
-
你期望那个节点的值是多少?
标签: xml windows-xp xerces