facebook

Editor/User

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #286341 Reply

    Russ
    Member

    Okay, I am not 100% sure about this, but I have tested it in XMLSpy and I don’t get an error.

    The issue is this:

    I have a schema I created in MyEclipse. This schema imports one other schema; therefore, I use the import element in the schema.

    I declare the namespace as such,

    
    xmlns:doc="http://webservice.my.mil/documentservices/schema/myInfo"
    

    The import statement looks like this:

    
    <xs:import namespace="http://webservice.my.mil/documentservices/schema/myInfo" 
                     schemaLocation="file:///MyDocument.xsd"/>
    

    The element that has a problem looks like this

    
    <xs:element ref="doc:Record" minOccurs="0" maxOccurs="10"/>
    

    The warning for the import statement is the file could not be read. The error for the element is it can not resolve the the name “doc:Record”

    Any suggestions would be appreciated.

    Russ

    #286435 Reply

    Riyad Kalla
    Member

    Russ, where does MyDocument.xsd live in relation to the document that imports t?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Editor/User

You must be logged in to post in the forum log in