XML Schema Validation (VW 7.4.1 nc)



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
.



Relevant Pages

  • Direct Binding-Schema validation at receive location
    ... I have a application which is based on schema A.it has a receive location ... where i use XmlTransmit pipeline to do schema validation with schema A. ... all the applications use file adapter for input transmission of xml file. ...
    (microsoft.public.dotnet.general)
  • RE: What is the timing on Lazy Schema Validation
    ... > If the Lazy Schema Validation is used, SQL2k doesn't check schema of the ... > remote table at the beginning of the query. ...
    (microsoft.public.sqlserver.server)
  • Re: Problem with xsd.exe
    ... I get a number of "schema validation: warnings and "element is not ... The one area that you can look it is the <namespace> tag, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Creating Ruby Classes from XSD?
    ... I'm not worried about this because things like Schema have ... the ability to support optional entities so you can grow your schema ... service and _two_ clients. ... Document Literal services because I can get full Schema validation from it. ...
    (comp.lang.ruby)