XML Schema Validation (VW 7.4.1 nc)
- From: Mani S Kartha <mani.kartha@xxxxxxxxxxxxxxxx>
- Date: Tue, 24 Apr 2007 11:44:16 +0530
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
.
- Prev by Date: Re: the Spoon book
- Next by Date: Different line types
- Previous by thread: the Spoon book
- Next by thread: Different line types
- Index(es):
Relevant Pages
|