[xml] XML Schema is confusing



I'm currently working on a project that reads an XML Schema and generates C code
to read and write a document of that type (sort of like CORBA IDL's).  At first,
I was going to go with full blown document validation, but decided that it would
be better handled by the xml parsing lib. 

In my exploration, I discovered that XML Schema has a schema of its own, written
in (of course) XML Schema.  This recursive definition trickles down quite a
ways, to where it defines the types of facets a "simpleType" may have.

The question I pose is this:  Is it better to write some sort of bootstrap
Schema validator/compiler(??) that in turn reads the W3C "XML Schema" schema and
validates the document from there, or just hardcode the whole schema validator.

Future flexibility vs complexity?

-- 
main(int a){int _[8]={4566,27702,8925,56701,28118,8743,8925,56701};putchar(a%40
?(a%5?(((_[a/5%8]>>(a/40)*4)&(1<<(a%5-1)))?48:32):32):10);if(a%160)main(a+1);}






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]