Menu

#10 Group elements are not completely processed.

open-accepted
None
5
2014-07-30
2007-05-07
Howard
No

When a complex type contains a reference to a group element, the group element is not completely processed.

The issue is that some of the elements are not generated.
<group name="RunwayPropertyGroup">
<sequence>
<element name="designator" nillable="true" minOccurs="0">
...
The element with the name "designator" is not generated.

It appears that all the elements without a type and/or contain a <complexType> tag do not get generated.

The element tags at the bottom of the group that contain a type attribute and do not contain any child elements are generated correctly.

The following snippet shows the fields generated.
==================%<=====================
#region fields
[System.Xml.Serialization.XmlElementAttribute("extension")]
public extension[] extension;
[System.Xml.Serialization.XmlElementAttribute("hasPaintedCentreline")]
public ElevatedCurvePropertyType hasPaintedCentreline;
[System.Xml.Serialization.XmlElementAttribute("surfaceDescribedBy")]
public SurfaceCharacteristicsPropertyType surfaceDescribedBy;
[System.Xml.Serialization.XmlElementAttribute("situatedAt_AerodromeHeliport")]
public AerodromeHeliportPropertyType situatedAt_AerodromeHeliport;
[System.Xml.Serialization.XmlElementAttribute("hasAnnotations")]
public NotesPropertyType hasAnnotations;
#endregion
==================%<=====================

The following is the XSD snippet with annotation elements removed to shrink the size of the text.
==================%<=====================
<complexType name="RunwayTimeSliceType">
<complexContent>
<extension base="aixm:AIXMTimeSliceType">
<sequence>
<group ref="aixm:RunwayPropertyGroup"></group>
<element name="extension" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element ref="aixm:_RunwayExtension"></element>
</sequence>
</complexType>
</element>
</sequence>
</extension>
</complexContent>
</complexType>

<!-- ***GROUP IS HERE *** -->

<group name="RunwayPropertyGroup">
<sequence>
<element name="designator" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:txtDesig">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="type" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:codeTypeRwy">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="length" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:valDist">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="width" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:valDist">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="lengthStrip" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:valDist">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="widthStrip" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:valDist">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="lengthOffset" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:valOffset">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="widthOffset" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:valOffset">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="status" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:codeStatusSurface">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="profile" nillable="true" minOccurs="0">
<complexType>
<simpleContent>
<extension base="aixm:txtDescr">
<attributeGroup ref="aixm:NilReasonGroup"></attributeGroup>
</extension>
</simpleContent>
</complexType>
</element>
<element name="hasPaintedCentreline" type="aixm:ElevatedCurvePropertyType" minOccurs="0"></element>
<element name="surfaceDescribedBy" type="aixm:SurfaceCharacteristicsPropertyType" minOccurs="0"></element>
<element name="situatedAt_AerodromeHeliport" type="aixm:AerodromeHeliportPropertyType" minOccurs="0"></element>
<element name="hasAnnotations" type="aixm:NotesPropertyType" minOccurs="0"></element>
</sequence>
</group>

==================%<=====================

Discussion

  • Peter Lin

    Peter Lin - 2007-05-16
    • assigned_to: nobody --> woolfel
    • status: open --> open-accepted
     
  • Peter Lin

    Peter Lin - 2007-05-16

    Logged In: YES
    user_id=220288
    Originator: NO

    sorry for the delay. I'm not sure how best to handle this case. This is the first time I've seen a schema declared this way. I'll have to think about how to best handle it.

    peter

     

Log in to post a comment.