views:

79

answers:

2

Hi ,

i am very new to xml and c++.

i want to validate xml against xsd using c++ api.can any one gimme any tutorial link? or sample program.i don want to do using msxml as its works in windows and visual studio.

i tried to use xerces and libxml but i have failed.now i am trying using tinyxml.

please help me to validate xml against xml schema using c++(not vc++,should work in cross platform)

regards, manu

A: 

You may take a look at libsystools. It's an open-source, multi-platform, x86/x64 C++ library that includes XML (and XML schemas, aka. XSD) support.

It is based on libxml2 but this is hidden.

It also handles a lot of stuff you probably don't want (sockets, openssl, xmlsec) so you might extract the XML classes and use them in your project instead. (Your software will have to be open-source though).

I you want to do so, I suggest you get the last sources using SVN (take the revision 315) and look at the files starting with xml.

Note: The current 2.0 release doesn't have XSD validation support. The next release will be in months, so there is no other way but getting the source from the SVN repository. But that's no big deal.

ereOn