开发者

Retrieving the text between 2 XML tags from the DOM Parser

开发者 https://www.devze.com 2023-03-13 04:56 出处:网络
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 --

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

精彩评论

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