48 AM
> To: dev@xmlbeans.apache.org
> Subject: RE: All elements not appearing in the generated XML
>
>
> I think it would make sense for XMLBeans to automatically add a
> simple-type element if it has a minOccurs>0 and a default or fixed value
> (or provide an option to en
nt.
Ian
| -Original Message-
| From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED]
| Sent: Monday, May 23, 2005 6:37 PM
| To: dev@xmlbeans.apache.org
| Subject: RE: All elements not appearing in the generated XML
|
| Actually, no, it won't. Since there is a difference between
nal Message-
| From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED]
| Sent: Monday, May 23, 2005 6:37 PM
| To: dev@xmlbeans.apache.org
| Subject: RE: All elements not appearing in the generated XML
|
| Actually, no, it won't. Since there is a difference between
| an element being present
uld modify your Schema to add
... default="red"
rather than modify your Java code to add
... x.addNewColor()
Radu
-Original Message-
From: Springer, Ian P. [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 8:06 AM
To: dev@xmlbeans.apache.org
Subject: RE: All elements
Have you tried setting default or fixed values in your schema? e.g.:
I'm not sure if XMLBeans automatically instantiates subelements that
have default or fixed values, but I would hope that it either
automatically does or provides an option to do so.
Ian
| -Original Message-
| From: