-
XML n00b needs help
Gday
I've been allocated the wonderful task of teaching myself XML.
Basically what I want is, without going into too much detail, be able to save a bunch of variables into an xml string, which may be then written into a file or sent via udp or whatever. I'm using VC++. I can't tell the difference between xml and a freight train.
Where do I begin? The MSXML SDK assumes you're a guru at everything and assumes you want to do the most complicated functions with xml. I need some basic core concepts backed up with some sample code that works. Any help/tips/pointers/directions?
Thanks a bunch and have a GREAT day! :cool:
-
Re: XML n00b needs help
Well I suppose http://www.w3schools.com XML tutorials would be a resonable place to start.
-
Re: XML n00b needs help
-
Re: XML n00b needs help
That one is using msxml.dll whereas mine uses msxml4.dll. Thanks anyway. :cool:
-
Re: XML n00b needs help
Take a look at this, its pretty easy.
-
Re: XML n00b needs help
Nice article, thanks mate.
-
Re: XML n00b needs help
If you're not keen on learning the finer points of DOM you could use a data binding tool. There are some free ones for Java (JAXB or Castor) but for C++ you would need a commercial app like Liquid Technologies XML Data Binding Wizard. This generates you an OO interface in C++ to code against and validates the XML against your Schema without having to deal with a DOM SDK.