开发者

Retrieving the text between 2 XML tags from the DOM Parser

I'm trying to do this in my C++ program and I'm using COM Interop.

The XML I'm trying to parse looks like this --

<PluginNameList version =”1.0”>
   <PluginName> Plug-in1 </PluginName>              
   <PluginName> Plug-in2 </PluginName>
</PluginNameList>

I'm trying to retrieve the text between

 <PluginName> </PluginNmae> tags.

Would I be using IXMLDOMElement or IXMLDOMNode? And which method from these classes?

I think it'开发者_JAVA百科s fairly trivial, but I'm not able to find a direct answer anywhere.

Thanks.


You should use method get_text in IXMLDOMNode. See msdn for more info

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜