Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / October 2006

Tip: Looking for answers? Try searching our database.

jaxb newbie | need help with a problem

Thread view: 
Michael Beckenkamp - 25 Oct 2006 23:16 GMT
i am new to jaxb and i am trying to unmarshal my first xsd scheme.

i get the following error message:

[ERROR] src-resolve: Cannot resolve the name 'NS0:noNamespaceSchemaLocation'
to a(n) 'attribute declaration' component.
 line 10 of
file:/C:/Dokumente%20und%20Einstellungen/Micha/Eigene%20Dateien/Stammbaum/Stammbaum/xml/Stammbaum.xsd

[ERROR] s4s-elt-invalid-content.1: The content of '#AnonType_root' is
invalid.  Element 'attribute' is invalid, misplaced, or occurs too often.
 line 10 of
file:/C:/Dokumente%20und%20Einstellungen/Micha/Eigene%20Dateien/Stammbaum/Stammbaum/xml/Stammbaum.xsd

the beginning of my xsd file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
xmlns:NS0="http://www.w3.org/2001/XMLSchema-instance">
<xs:import namespace="http://www.w3.org/2001/XMLSchema-instance"
schemaLocation="NS0.xsd"/>
<xs:element name="root">
 <xs:complexType>
  <xs:sequence>
   <xs:element ref="Personen"/>
   <xs:element ref="Partnerschaften"/>
  </xs:sequence>
  <xs:attribute ref="NS0:noNamespaceSchemaLocation" use="required"/>
 </xs:complexType>
</xs:element>
<xs:element name="Personen">
 <xs:complexType>
  <xs:sequence>
   <xs:element maxOccurs="unbounded" ref="Person"/>
  </xs:sequence>
 </xs:complexType>
</xs:element>

can anyone please give me some advice what to do about this error message?

thanks for your help
Michael Beckenkamp
Michael Beckenkamp - 26 Oct 2006 22:13 GMT
Problem solved. I threw out several lines from the (Oxygen generated)
xsd-scheme and got it compiled. Sorry for bothering you, folks.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.