Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-12 Thread Srinath C
-- > *From:* Jacob Danner [mailto:[EMAIL PROTECTED] > *Sent:* 12 January 2008 02:19 > > *To:* user@xmlbeans.apache.org > *Subject:* Re: [newbie] difference between addNew and (Factory.newInstance+ > set) > > Hi Paul, > This is actually working as expected :) I just spaced a

RE: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-12 Thread Paul French
To: user@xmlbeans.apache.org Subject: Re: [newbie] difference between addNew and (Factory.newInstance + set) Hi Paul, This is actually working as expected :) I just spaced and missed it the first time around. try something like: BusinessDescription.Contact contact

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
Time(someDate); // line 2 > > > > If I call contact.getDateTime() now it will still hold the same date and > > time set in line 1 > > > > > > I had to change the code to do: > > > > Calendar cal = Calendar.getInstance(); > > cal.setTime(s

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
ate); > > I assumed this must be due to XMLBeans passing back a copy of the Calendar > object when calling contact.getDateTime() > > > > > > -- > *From:* Jacob Danner [mailto:[EMAIL PROTECTED] > *Sent:* 11 January 2008 17:52 > *To:*

RE: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Paul French
Danner [mailto:[EMAIL PROTECTED] Sent: 11 January 2008 17:52 To: user@xmlbeans.apache.org Subject: Re: [newbie] difference between addNew and (Factory.newInstance + set) Hi Paul, Can you do a System.out.println(contact.xmlText()); in each of the scenarios below? How is Address defined in the s

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
Hi Paul, Can you do a System.out.println(contact.xmlText()); in each of the scenarios below? How is Address defined in the schema? Thanks, -jacobd On Jan 11, 2008 9:29 AM, Paul French <[EMAIL PROTECTED]> wrote: > Hello, > > I have created a library using scomp from an xml schema. > > I am buildi

[newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Paul French
Hello, I have created a library using scomp from an xml schema. I am building a XML document using this library. I have come across some behaviour I do not understand. For this example a BusinessDescription may have a Contact and a Contact may have an Address. If I do the following: Busin