[jdom-interest] Xerces problems with XSD:ANY

Hans Prüller hans.prueller at igs.at
Wed Nov 14 00:01:03 PST 2001


Hi,

has anyone of you experienced problems, that xerces (1.4.3) throws
errors when validating files (against a xml schema) which ARE valid?

For example, a part of my schema looks like this:

[ . . . ]

<xsd:element name="expampleElement">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:any minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

[ . . . ]

So it should be possible, that <exampleElement> can contain any
desired child element(s), e. g.

<exampleElemet>
  <AAA xmlns="">
    [ . . . ]
  </AAA>
  <BBB xmlns="">
    [ . . . ]
  </BBB>
</exampleElement>

<AAA> and <BBB> are not defined in the Schema (and they are not in the
default Namespace),
but respectively to the <xsd:any/> - Declaration it should be valid (XML
Spy 4.0 verified this).

But when I want to parse the File into a JDOM-Document via SAXBuilder, I
get the error:

"Element AAA must be declared [...]"

Has anybody an idea of what could be wrong?


regards,
hans

____________________________________________________
IGS Systemmanagement
GmbH & Co KG
Dorfplatz 5
A-4531 Piberbach
phone: +43 7228 6451 0       home: http://www.igs.at
fax: +43 7228 6451 30        eMail: igs at igs.at
hotline:
fax: +43 7228 6451 20        eMail: hotline at igs.at
____________________________________________________

NEWSFLASH___________________________________________

Anlagenbuchhaltung ab I.Quartal 2002 verfügbar
Demotermine ab sofort möglich
Reservierung unter: igs at igs.at

Downloadbereich für Dokumentation
ist ab jetzt online verfügbar

  näheres unter http://www.igs.at unter Downloads
NEWSFLASH___________________________________________




More information about the jdom-interest mailing list