[Home] [By Thread] [By Date] [Recent Entries]

  • From: Chin Chee-Kai <cheekai@s...>
  • To: ilangocal@y...
  • Date: Wed, 10 Sep 2008 01:27:49 +0800

ilango wrote:
667597.40210.qm@w..." 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.

Regards,
Chin Chee-Kai



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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member