I don't understand what's going on here. My little parser program passes my XML & XSD changes and loads stuff fine, from what I can tell, but if I put this stuff out there in our production system it blows up.
I'm just now beginning to use the XSD import statement. What I've done if taken out some user-defined types and put them into a XSD all their own.
Here are some typical errors
Error at file "/home/dfcuser/dataElementsTrans.xsd", line=7, column=37, XML element=, Imported schema 'DFCTypes.xsd' has a different targetNameSpace 'http://www.quikq.com/xsd/dataElementsTrans' from what's declared 'http://www.quikq.com/DFCTypes'
Error at file "/home/dfcuser/dataElementsTrans.xsd", line=29, column=55, XML element=, Schema Representation Constraint: Namespace 'http://www.quikq.com/DFCTypes' is referenced without declaration
Here is the preamble of the example documents:
DFCTypes.xsd
------------
<xs:schema
targetNamespace="http://www.quikq.com/DFCTypes"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
dataElementsTrans.xsd
---------------------
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dfct="http://www.quikq.com/DFCTypes"
targetNamespace="http://www.quikq.com/xsd/dataElementsTrans"
xmlns="http://www.quikq.com/xsd/dataElementsTrans"
elementFormDefault="qualified" >
<xs:import schemaLocation="DFCTypes.xsd" namespace="http://www.quikq.com/DFCTypes" />
XML
---
<dataElementsTrans
xmlns="http://www.quikq.com/xsd/dataElementsTrans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.quikq.com/xsd/dataElementsTrans dataElementsTrans.xsd">
My sample parser program and production code must have something turned on differently. I'm still pretty green on this so I'm scratching my head for a bit.
Thanks!