XML validator library
I'm using XML
in my appli开发者_如何学Pythoncation with some own XML-parser (from ClanLib
library).
The problem : that parser can't validate XML
and it fails if any mistakes are presented. I need some validator which will say if the XML
is valid and (preferable) show the error.
Xerces-C++ can validate XML using DTD and XSD. Syntax is also validated.
In Windows, You can use MSXML to validate an XML.
See http://msdn.microsoft.com/en-us/library/ms763742.aspx
The validate method is described here.
From C++, You'll have to use COM.
精彩评论