RE: [xml-dev] Validating Bulk XML Data

From
Michael Kay <>
To
'Ravindra Rao' <>,
Date
2007-08-15T12:53:06Z
ID
<005c01c7df3b$3a408580$9a09010a@turtle>
Thread
RE: [xml-dev] Validating Bulk XML Data
> Broadly we can have two approaches either change 
> the schema a bit so that the xsd grammar sees each of the 
> files as one giant xml document with many nodes or parse each 
> of the 1000. The disadvantage with the first approach seems 
> to be if one of the original gomls is invalid the whole 
> aggregated goml gets invalidated. The second approach is 
> potentially slow (we are using this and multi threading it 
> and tweaking bits of it).

I can't see any intrinsic reason why validating 1000 small documents should
take longer than validating one document formed by concatenating the
content, provided the schema itself is only prepared once.

Michael Kay
http://www.saxonica.com