logo       

RE: default values for created beans: msg#00134

text.xml.xmlbeans.user

Subject: RE: default values for created beans

Hi.

I find that very interesting. Although I am not sure I would wan it to be a
default behaviour. Maybe any given bean could provide a method like
addDefaultElements() to populate the document with minimum elements and default
values.

I think it is a valuable feature of XMLBeans that _invalid_ documents can be
built/manipulated with it.

Florian Hehlen

>-----Original Message-----
>From: mg [mailto:xmlbeans@xxxxxxxxxxxxxxxxxxxxx]
>Sent: Tuesday, January 25, 2005 3:16 AM
>To: user@xxxxxxxxxxxxxxxxxxx
>Subject: default values for created beans
>
>
>Hi there,
>
>I am creating new beans using the addNewXXX methods in the compiled
>beans. However I was really hoping that the default values that I have
>specified in the schema would be used to fill in the new bean.
>Also if a
>child element is specified as having a minOccurs of 1 I would
>think that
>the element would be automatically created as well.
>
>What do you think?
>Marius.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@xxxxxxxxxxxxxxxxxxx
>For additional commands, e-mail: user-help@xxxxxxxxxxxxxxxxxxx
>
>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise