validate XML with XSD in c++

Discussion in 'XML' started by uck.larsson, Mar 20, 2010.

  1. uck.larsson

    uck.larsson Guest


    Im pretty new to both XML validation and C++ (more familiar with
    Java..) so I guess this is a trivial question.

    If I have a XML file and a XSD schema, how is the best way to validate
    them? Id like to to this in c++ without using external libraries, or
    as little libraries as possible, is it possible? Other ideas of how
    this can be done?
    I want a simple solution, the output needed is just if the validation
    i successful or not.

    Any help is appreciated

    // Katarina
    uck.larsson, Mar 20, 2010
    1. Advertisements

  2. I am not familiar with C++ and what is considered core and what is
    considered a library but one validating parser that supports validation
    against a schema is Xerces C++:

    If you work on Windows (XP SP 3 or later versions like Windows Vista or
    Windows 7) then you can consider MSXML 6 as that is part of the OS:
    Martin Honnen, Mar 20, 2010
    1. Advertisements

  3. uck.larsson

    uck.larsson Guest

    Thanks for your replay, Ill give Xerces C++ a closer look, and Im on
    Mac OS unfortunately

    // Katarina
    uck.larsson, Mar 23, 2010
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.