Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

A part of my XML document is as follows:
<xml version="1.0" encoding="utf-8" ??
- <!-- comments-->
- <installfileset>
<file name="C1.DLL" version="12.0.8168.0">
<file name="C1XX.DLL" version="12.0.8168.0">
& so on...

My question is,
to access the node name in Vc++6.0, I used "pNode->nodeName;" and it works fine and gives the result "File" which is desired.
But now how do I access the value of this node? That is, I need to get the result as "C1.DLL" which must be a string. And then I need to add this string value to a CStringArray list. How do I do this?
I need to get the version name as well. That is "12.0.8168.0" as a string and then add it into CStringArray list.

Thanks & Regards,
Ramya Suvarna
Updated 5-Oct-10 20:37pm

1 solution

The value of the node is possibly (you didn't post the corrensponding XML) another node, child of the 'File' node, of type text.
As about accessing attributes, you have the attributes property of, again, the node 'File'.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900