CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2001
    Location
    Sydney, Australia
    Posts
    813

    Question 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!
    Microsoft LVP - Least Valuable Professional

    Please rate this post... Pleeeeeeaaassee!!!

  2. #2
    Join Date
    May 2003
    Location
    Denmark
    Posts
    1,315

    Re: XML n00b needs help

    Well I suppose http://www.w3schools.com XML tutorials would be a resonable place to start.
    The biggest problem encountered while trying to design a system that was completely foolproof,
    was, that people tended to underestimate the ingenuity of complete fools.
    Douglas Adams

  3. #3
    Join Date
    Oct 2004
    Posts
    5

    Re: XML n00b needs help


  4. #4
    Join Date
    Aug 2001
    Location
    Sydney, Australia
    Posts
    813

    Re: XML n00b needs help

    That one is using msxml.dll whereas mine uses msxml4.dll. Thanks anyway.
    Microsoft LVP - Least Valuable Professional

    Please rate this post... Pleeeeeeaaassee!!!

  5. #5
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    Re: XML n00b needs help

    Take a look at this, its pretty easy.

  6. #6
    Join Date
    Aug 2001
    Location
    Sydney, Australia
    Posts
    813

    Re: XML n00b needs help

    Nice article, thanks mate.
    Microsoft LVP - Least Valuable Professional

    Please rate this post... Pleeeeeeaaassee!!!

  7. #7
    Join Date
    Apr 2002
    Posts
    2

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured