OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] reasons why an XML instance must be validated witha XML schema

ilango wrote:
667597.40210.qm@web56102.mail.re3.yahoo.com" type="cite">
IThe question they raised was:
If so, why should we use XML schema to validate XML?
Very good question indeed.  It really takes full understanding of the context of your project to give a good answer.  But short of that, I'll just venture to suggest that there's no imposed requirement by anybody that your team SHOULD use XML schema for XML validation.

In high-speed memory critical embedded systems where the structure is simple, chance of non-structural conformance is very little, but validation speed must be very fast, for example,  it is possible to just check the essentials like tag name , type of data, range, etc on a field-by-field basis. 

On the other hand, in  one-to-many XML exchanges with half-trusted or yet-unknown bodies where messages are agreed and defined  via XML schema itself, then it may just be practically easier and more accurate to validate against the defining XML schema.  Examples are UBL schemas for e-commerce exchanges.

Many situational factors lie in between, of course.  I'd suggest asking more related questions to nail down reasons that may be peculiar to your team/project.

Chin Chee-Kai

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS