Max Frai
Max Frai

Reputation: 64266

XML validator library

I'm using XML in my application 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.

Upvotes: 4

Views: 7035

Answers (2)

Lior Kogan
Lior Kogan

Reputation: 20608

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.

Upvotes: 1

dalle
dalle

Reputation: 18507

Xerces-C++ can validate XML using DTD and XSD. Syntax is also validated.

Upvotes: 6

Related Questions