Re: saving and getting back XMLBeans
Problem solved, thanks. I noticed that when using save with a StringWriter the XML declaration is not written whereas if I use a File it is. On Thu, Feb 21, 2008 at 3:33 PM, Jacob Danner <[EMAIL PROTECTED]> wrote: > Try the save(file) method on the xmlobject. > -jacobd > > On Thu, Feb 21, 2008 at 7:07 AM, Dário Abdulrehman > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'd like to save a XMLBean with the declaration and encoding and read it > > back (using parse?). > > > > The method xmlText just saves a xmlfragment with no declaration so later > > when I try to read it back with parse it fails. > > > > Is there any code example for this? > > > > thx, > > Dário > > > > -- > > Dário Abdulrehman > > PGP Public Key: http://tinyurl.com/2pm9d7 > > -- > > > > -- > I'm competing in a Half-Ironman distance triathlon to raise money for > the fight against cancer! > Please help support my efforts by going to: > http://www.active.com/donate/tntwaak/jacobd > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Dário Abdulrehman PGP Public Key: http://tinyurl.com/2pm9d7 --
Re: saving and getting back XMLBeans
Try the save(file) method on the xmlobject. -jacobd On Thu, Feb 21, 2008 at 7:07 AM, Dário Abdulrehman <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to save a XMLBean with the declaration and encoding and read it > back (using parse?). > > The method xmlText just saves a xmlfragment with no declaration so later > when I try to read it back with parse it fails. > > Is there any code example for this? > > thx, > Dário > > -- > Dário Abdulrehman > PGP Public Key: http://tinyurl.com/2pm9d7 > -- -- I'm competing in a Half-Ironman distance triathlon to raise money for the fight against cancer! Please help support my efforts by going to: http://www.active.com/donate/tntwaak/jacobd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
saving and getting back XMLBeans
Hi, I'd like to save a XMLBean with the declaration and encoding and read it back (using parse?). The method xmlText just saves a xmlfragment with no declaration so later when I try to read it back with parse it fails. Is there any code example for this? thx, Dário -- Dário Abdulrehman PGP Public Key: http://tinyurl.com/2pm9d7 --