Click to See Complete Forum and Search --> : XML n00b needs help


Deniz
September 20th, 2004, 11:51 PM
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:

khp
September 21st, 2004, 04:32 AM
Well I suppose http://www.w3schools.com XML tutorials would be a resonable place to start.

MetaPattern
October 4th, 2004, 02:00 PM
Check out this article:

http://www.codeguru.com/Cpp/misc/misc/article.php/c3707/

MP:

Deniz
October 4th, 2004, 09:42 PM
That one is using msxml.dll whereas mine uses msxml4.dll. Thanks anyway. :cool:

Ejaz
October 7th, 2004, 07:08 AM
Take a look at this (http://www.codeguru.com/Cpp/data/data-misc/xml/article.php/c8287/), its pretty easy.

Deniz
October 7th, 2004, 11:46 PM
Nice article, thanks mate.

safepage
October 8th, 2004, 08:04 AM
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 (http://www.liquid-technologies.com/). 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.