jaxb newbie | need help with a problem



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



.



Relevant Pages

  • Re: why>?
    ... When you hire Excel 'developers' for your own company, ... failure on the part of whoever designed the spreadsheet in question to ... were invalid. ... I've never used this particular error message, but I've used similar, ...
    (microsoft.public.excel)
  • Re: Re-installed Outlook Performs Illegal Operation
    ... > office suite - just the Outlook. ... Search "Explorer caused an invalid page fault in module unknown"; ... The Error Message "Explorer Caused an Invalid Page Fault in Module ...
    (microsoft.public.outlook.installation)
  • Re: rm(1) bug, possibly serious
    ... rm: ../: Invalid argument ... The first time I got an error message, ... Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. ... Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: ...
    (freebsd-stable)
  • Re: How do I temporarily limit values in a query field
    ... I am getting an error message: "The expression you entered has a invalid ..or! ... This is the last few lines of the 'old' sql with an attempt to limit the records to values of <500: ... works fine until I try to put limits on it value in the qryClaimDetails query. ...
    (microsoft.public.access.queries)
  • Re: ListView item key
    ... "Enggas" wrote in message ... :> But I have problem setting the key for every item ... :> When I run the program, it pops up an error message "Invalid Key". ...
    (microsoft.public.vb.controls)