Are all necessary prefixes declared in both schemas?
 
Milan
----- Original Message -----
Sent: Friday, August 08, 2003 13:49
Subject: validation against schema that imports other namespaces

  Hi,

  I need to validate some XML documents against schema that imports some
other namespaces and use them to construct some more complex types that
include types from those namespace as well.

  Now, I simply fail in trying to validate document using standard JAXP
1.2 possibilities. I have try using:

factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "blabla.xsd");

and that works fine if my schema does not import any other namespace.
Otherwise, I get message that the parser is not able to find declaration
of document root element.

  Any idea? Thanks in advance,

Predrag


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to