anyAttribute declarations are being lost when serialized...
-----------------------------------------------------------
Key: WSCOMMONS-353
URL: https://issues.apache.org/jira/browse/WSCOMMONS-353
Project: WS-Commons
Issue Type: Bug
Components: XmlSchema
Reporter: Daniel Kulp
Priority: Critical
I have a schema type defined as:
<complexType name="OccuringStructWithAnyAttribute">
<sequence minOccurs="1" maxOccurs="5">
<element name="varString" type="xsd:string"/>
<element name="varInt" type="xsd:int"/>
</sequence>
<attribute name="AtString" type="xsd:string"/>
<attribute name="AtInt" type="xsd:int"/>
<anyAttribute processContents="skip"/>
</complexType>
However, when that is loaded and then serialized, it ends up like:
<xsd:complexType name="OccuringStructWithAnyAttribute">
<xsd:sequence maxOccurs="5">
<xsd:element name="varString" type="string"/>
<xsd:element name="varInt" type="int"/>
</xsd:sequence>
<xsd:attribute name="AtString" type="string"/>
<xsd:attribute name="AtInt" type="int"/>
</xsd:complexType>
The <anyAttribute processContents="skip"/> thing is missing which is critical
for validation to work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.