Import Issue
Posted: Wed Apr 02, 2008 5:12 pm
I have a schema that imports another schema from my project. For reference I have 7 other imports that work fine. On this particular import it comes up with an error that it couldn't find the specific type that I am trying to import. Though in the visual editor it shows the import and displays the node correctly. I am unable to generate java classes or sample xml because of this. I have included the import statment, the node, and some other pertinant code. Also this is the message I get.
Error (http://www.w3.org/TR/xml-schema-1, src-resolve) src-resolve: Cannot resolve the name 'conInfo:ContractInformationType' to a(n) 'type definition' component.
Top Level Schema Code
The Partial ContractInformation Schema Code
Any Assistance would be helpful
Error (http://www.w3.org/TR/xml-schema-1, src-resolve) src-resolve: Cannot resolve the name 'conInfo:ContractInformationType' to a(n) 'type definition' component.
Top Level Schema Code
Code: Select all
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:per="Person/v1.00"
xmlns:conInfo="ContractInformation/v1.00"
xmlns:rct="RecruiterInformation/v1.00" xmlns:someAp="someApInformation/v1.00"
xmlns:tns="SomeCandidate/v1.00" targetNamespace="SomeCandidate/v1.00"
xml:lang="EN" version="1.00">
<xs:import namespace="ContractInformation/v1.00"
schemaLocation="contract/ContractInformation.v1.00.xsd" />
<xs:element name="contractInfo" type="conInfo:ContractInformationType"
minOccurs="0" />
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="ContractInformation/v1.00"
targetNamespace="ContractInformation/v1.00">
<xs:element name="ContractInformation" type="tns:ContractInformationType" />
<xs:complexType name="ContractInformationType">
<xs:sequence>