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

XML tag is not created for [minOccurs="1" and nillable="false"]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: Version 2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hello all,

      My XSD scheme:

      <xs:element name="Info">
      <xs:complexType>
      <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:element minOccurs="1" maxOccurs="1" name="Name" type="xs:string"/>
      <xs:element minOccurs="1" maxOccurs="1" name="Value" type="xs:string"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>

      XML message when Name is "test" and Value is NULL:

      <Info>
      <Name>test</Name>
      <Info>

      I expect empty <Value /> tag in the result:

      <Info>
      <Name>test</Name>
      <Value />
      <Info>

      Why empty <Value /> tag was not created?

      Best regards,
      Yuriy.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yuriypalych Yuriy Glushanin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: