From: Dannes W. <di...@ex...> - 2008-07-25 19:16:24
|
Hi there On Jul 25, 2008, at 19:58 , Geoff Drake wrote: > I implemented the validation using explicit function calls and now I > get the same error as using the automatic validation. > <namespace/> > <message level="Error" line="2" column="259">cvc-elt.1: Cannot > find the declaration of element 'Contract'.</message> there is more information here then expected. The namespace is an empty string here (otherwise, this element would not have been there at all). The trick here (this is documented) is to define a namespace in your xml instance document, and have the schema define this namespace. Only then the validator will be able to to match the xml instance document and the grammar... > The XML and schema validates ok in our schema tool (Oxygen) and > several > online validators. sure. With these validators you can force to use a specific schema for a document. Exist (based on validating sax parsing) can't do that [although, as we speak, I have some new ideas here....] regards Dannes -- eXist-db Open Source Native XML Database http://exist-db.org |