For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > April 2007 > XML Schema Validation (VW 7.4.1 nc)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author XML Schema Validation (VW 7.4.1 nc)
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com