You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by Kurt Roy <kr...@prospricing.com> on 2007/06/23 23:33:39 UTC

toString()/Pretty print - outputs default values if not explicitly set?

Hello,

 

We have a schema that has some default values specified for some
attributes. We are building an xmlbeans structure in order to do a
"toString()" to get the resultant output xml. For some of the default
values, we do not have any exact values to set on the xmlbean, so we are
not explicitly setting values for these attributes.

 

We were expecting the XmlBean to provide the default value upon calling
"toString()".

 

Is this supported? I did not see this in the doc (very possible I did
not see it though).

 

Thanks,

Kurt Roy | PROS | Software Architect, Software Development
phone: +1 713-335-8007 | email: kroy@prospricing.com 

Save the Date for the 14th Annual PROS Summit * April 20-23, 2008 at the
Hilton Americas Hotel in Houston, Texas * www.prospricing.com
<http://www.prospricing.com/> 

 



The information contained in this email may be confidential and/or legally privileged. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please contact the sender by reply email and destroy all copies of the original message. Thank you



RE: toString()/Pretty print - outputs default values if not explicitly set?

Posted by Radu Preotiuc-Pietro <ra...@bea.com>.
Kurt, the reason to have default values declared in the Schema is so you
_don't_ have to specify them in the instance, they are defaulted. So
this is what XMLBeans in doing. The default values are returned when you
called the generated getters, but they are not put in the XML document.
 
Radu


________________________________

	From: Kurt Roy [mailto:kroy@prospricing.com] 
	Sent: Saturday, June 23, 2007 2:34 PM
	To: dev@xmlbeans.apache.org
	Subject: toString()/Pretty print - outputs default values if not
explicitly set?
	
	

	Hello,

	 

	We have a schema that has some default values specified for some
attributes. We are building an xmlbeans structure in order to do a
"toString()" to get the resultant output xml. For some of the default
values, we do not have any exact values to set on the xmlbean, so we are
not explicitly setting values for these attributes.

	 

	We were expecting the XmlBean to provide the default value upon
calling "toString()".

	 

	Is this supported? I did not see this in the doc (very possible
I did not see it though).

	 

	Thanks,

	Kurt Roy | PROS | Software Architect, Software Development
	phone: +1 713-335-8007 | email: kroy@prospricing.com 

	Save the Date for the 14th Annual PROS Summit * April 20-23,
2008 at the Hilton Americas Hotel in Houston, Texas *
www.prospricing.com <http://www.prospricing.com/> 

	 

	
________________________________

	The information contained in this email may be confidential
and/or legally privileged. It has been sent for the sole use of the
intended recipient(s). If the reader of this message is not an intended
recipient, you are hereby notified that any unauthorized review, use,
disclosure, dissemination, distribution, or copying of this
communication, or any of its contents, is strictly prohibited. If you
have received this communication in error, please contact the sender by
reply email and destroy all copies of the original message. Thank you
	
	

	


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.