How to extract specific data values from xml using VC++ [modified]
-
Hi.. Can some one please help me how to extract the data values from the following XML file using C++ code. From the following example, we can observe two types of "CfgType"(Ane Justin and Jessica Sis). Under each "CfgType" there are different "MachineModel" and under that "ModelNo" and followed by "ScreenResolution".
Ane Justin 2345678 17" LCD 1024*768 60 800*600 60 19" LCD 1024*768 60 800*600 60 0789456 17" CRT 1024*768 60 800*600 60 19" CRT 1024*768 60 800*600 60
-
Hi.. Can some one please help me how to extract the data values from the following XML file using C++ code. From the following example, we can observe two types of "CfgType"(Ane Justin and Jessica Sis). Under each "CfgType" there are different "MachineModel" and under that "ModelNo" and followed by "ScreenResolution".
Ane Justin 2345678 17" LCD 1024*768 60 800*600 60 19" LCD 1024*768 60 800*600 60 0789456 17" CRT 1024*768 60 800*600 60 19" CRT 1024*768 60 800*600 60
Certainly nobody will write the whole code for you. Try it yourself and if you get stuck on some specific point come back here and we'll be glad to help you. If you use .NET take a look at the
System.Xml
namespace. Otherwise MSXML may be interesting to you.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
-
Hi.. Can some one please help me how to extract the data values from the following XML file using C++ code. From the following example, we can observe two types of "CfgType"(Ane Justin and Jessica Sis). Under each "CfgType" there are different "MachineModel" and under that "ModelNo" and followed by "ScreenResolution".
Ane Justin 2345678 17" LCD 1024*768 60 800*600 60 19" LCD 1024*768 60 800*600 60 0789456 17" CRT 1024*768 60 800*600 60 19" CRT 1024*768 60 800*600 60
I suggest starting by studying MSXML. In the MSDN library (msdn.microsoft.com), it's under "Win32 and COM Developement/Data Access and Storage/MSXML" This documents some software that you can download for free from MSDN downloads. Nathan