Hi, I have a schema that imports another schema.
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ordr="http://www.example.com/order" xmlns:sku="http://www.example.com/sku" targetNamespace="http://www.example.com/order" elementFormDefault="qualified"> <import namespace="http://www.example.com/sku" schemaLocation="SKU.xsd" /> ..... </schema> The DocumentBuilderFactory is set to Validating and NamespaceAware. The SchemaSource attribute is set to "http://www.example.com/order". When I run my program, I get the following exception: org.xml.sax.SAXParseException: src-import.3.1: The namespace attribute, 'http://www.example.com/sku', of an <import> element information item must be identical to the targetNamespace attribute, 'http://www.example.com/order', of the imported document. It seems like at some point the targetNamespace attribute in DOM? for the imported document is being set to the SchemaSource attribute of DocumentBuilderFactory and not the actual value in the imported doc. I am not sure of how to debug this to be able to fix the issue. Any help will be greatly appreciated. Thanks, Kal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
