CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Posts
    35

    C++ and XML in Win32

    I am sure it's out there... but I just can't locate it. I want to enable my C++ app to read/write XML using win32 (no MFC). Is there a standard API that would enable this functionality? If so, can someone direct me to some more information or a tutorial?

    Thanks!

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: C++ and XML in Win32

    Are you referring to the IXMLDOMDocument interface?

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  3. #3
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: C++ and XML in Win32

    search for XML parser in these forums. There is what is called MSXML, which is a COM based class provided by microsoft. There are other alternative libraries too. You should find links to some of them here in the forums

  4. #4
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: C++ and XML in Win32

    Quote Originally Posted by eeboy
    I am sure it's out there... but I just can't locate it. I want to enable my C++ app to read/write XML using win32 (no MFC). Is there a standard API that would enable this functionality? If so, can someone direct me to some more information or a tutorial?

    Thanks!
    COM does not require MFC.
    Use #import directive and the compiler will generate C++ classes (COM interfaces) based on type library contents (in .tli and .tlh files)
    Here is what you have to add somewhere in your source code:
    Code:
    #import "msxml3.dll"
    using namespace MSXML2;
    More info about MSXML interfaces you can find in MSDN as already suggested.
    Last edited by ovidiucucu; February 7th, 2006 at 01:27 PM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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