| Mani S Kartha 2007-04-24, 8:08 am |
| Hi,
I used the following code for schema validation of an xml.
schemaURI := 'http://...' asURI.
docURI := 'http://...' asURI.
schema := SchemaHandler parse: schemaURI.
doc := XMLParser new
validate: false;
parse: docURI.
schema validate: doc
upon inspecting, the schema (= a XMLSchema) contained parts correctly as
in the xsd and the doc (= a XMLDocument) exactly specifies my xml. But
the validate method gives me an error(doesNotUnderstand).
The exact postion where i get the error is the below method in
XML.SimpleType
validate: aNode value: aString state: schemaState
self parts do: [:v | v validate: aNode value: aString state: schemaState].
and the #doesNotUnderstand happens when v= a XML.SchemaAnnotation
Never mind if i am a bit over explained.
Is there some other Parcels i need to load (Obviously i have loaded
'XSchema')?
Can any one suggest a solution?
Thanks in advance,
Mani
|