#6 Bug interpreting schema elements with attributes and text.

closed-fixed
nobody
None
5
2005-05-24
2005-05-20
No

Jaxe seems to have a problem interpreting an xml schema
elements similar which have both attributes and text,
like this:

<xs:element name="option">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="value" use="optional">
</xs:attribute>
<xs:attribute name="selected" type="xs:string"
use="optional">
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>

I simply get an error message "It is forbidden to
insert text under the element option" when I try to put
text in the option element. I am using Jaxe 2.1 with
Java 1.5.0.

Discussion

  • Damien Guillaume

    • status: open --> closed-fixed
     
  • Damien Guillaume

    Logged In: YES
    user_id=56791

    You are correct. I have fixed the bug, and the fix will be in the next
    version. In the meantime, I see 2 workarounds: using a top-level
    complexType with a name and refer to it in the element type, or using the
    attribute mixed="true" for the complexType.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks