|
Hi Artem Can you send the code you are using to
create your document please? Cheers, Lawrence From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Hi, There appears to be a problem in XMLBeans with handling of
default values for attributes. I have an attribute in my schema that has a
type of enumeration and also has a default value
<xs:attribute name="method" type="com:HTTPMethod" default="POST"/> <xs:simpleType name="HTTPMethod">
<xs:restriction base="xs:string">
<xs:enumeration value="GET"/>
<xs:enumeration value="POST"/>
</xs:restriction> </xs:simpleType> When I create my document using XMLBeans and serialize it
via save(OutputStream), I end up with the method attribute having an empty
value. However, if I make a call to getMethod(), I’m getting the
expected default value. What am I doing wrong? Thank you, Artem _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. |
- Default attribute value and serialization Artem_Portnoy
- RE: Default attribute value and serialization Lawrence Jones
- RE: Default attribute value and serialization Artem_Portnoy
- RE: Default attribute value and serialization Lawrence Jones
- RE: Default attribute value and serialization Artem_Portnoy
- RE: Default attribute value and serialization Lawrence Jones
- RE: Default attribute value and serialization Artem_Portnoy

