Tech Support > Microsoft Windows > Development Resources > Validating xml against xsd schema
Validating xml against xsd schema
Posted by Borman on July 5th, 2004


Hi.

Did you happen to know a class for validating xml files against xsd
schema ? I'm using vc++ 6.0 and so far I used pretty simple, but effective
class CMarkup lite. The need arises to validating xml and unfortunately
CMarkup doesn't support validation.
Any suggestions ? Ah, yes, it will be perfectly if this will:
1. use mfc, no stl
2. be open source solution or freeware.

TIA
Borman



Posted by Alex Blekhman on July 5th, 2004


"Borman" <clark@poczta.onet.pl> wrote in message
news:40e95e8d$1@news.inet.com.pl...
You don't need much code to do that. Here are couple of examples:
"Validate an XML Document Against an XML Schema (C/C++)"
<http://msdn.microsoft.com/library/en..._HDI_ValidateX
mlDocumentAgainstSchema_CPP.asp>



Posted by Borman on July 6th, 2004


Hi,

OK. Thx. But can you think about something non msxml dependent ?

Borman.



Posted by Borman on July 6th, 2004


Hi,

Yes, you are right - at least with your first part Better parser - well
for example Pug XML (http://www.codeproject.com/soap/pugxml.asp).
Unfortunately only vs > 6.0.
msxml = overhead + dependency on system dlls + ole => not so fast.

Nonetheless, I think I haven't got much choice.
Thanks for your answers.

Borman.



Posted by Alex Blekhman on July 6th, 2004


"Borman" <clark@poczta.onet.pl> wrote in message
news:40ea4ae8$1@news.inet.com.pl...
Certainly I can imagine some open source project that implements XML
parser (<http://xml.apache.org/>, for example), but why? You're
already using MFC and MS compiler and I'm sure your target platform is
Windows. Why to introduce other XML parser than one of MS? I'm in
doubt that there is other XML parser for Windows platform any better
than MSXML.




Similar Posts