Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-334

No access to content for mixed complexType containing an empty choice only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Invalid
    • Version 2.2, Version 2.3
    • unspecified
    • Compiler
    • None

    Description

      Within a small example that I will attach in a minute there is defined an element Title:
      <xs:element name="Title">
      <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded"/>
      </xs:complexType>
      </xs:element>

      The generated sourcecode for interface Title within XBTitleDocument (all xmlbeans generated classes were created with XB prefix by way of xsdconfig) does extend from org.apache.xmlbeans.XmlObject and contain nothing else than the static org.apache.xmlbeans.SchemaType member. Especially it does not provide access to the string content of the element.

      Though the generated implementation TitleImpl in XBTitleDocumentImpl does provide access as it
      -> derives from org.apache.xmlbeans.impl.values.XmlComplexContentImpl
      -> deriving from XmlObjectBase
      -> granting access to that value by way of method getStringValue()

      Attachments

        Activity

          People

            Unassigned Unassigned
            jstammi Johannes Stamminger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: