Armin,
It's something like this:
XmlObject doc =
...;
XmlOptions saveoptions = new
XmlOptions();
saveoptions.setSavePrettyPrint();
doc.save(System.out,saveoptions);
saveoptions.setSavePrettyPrint();
doc.save(System.out,saveoptions);
Of course, you have to implement the "..." in the
first statement. That's where you put the data you want serialized into
the Java objects whose types were created by xmlBeans when it
processed the schema.
Check out: Getting
Started.
-Sam
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, November 24, 2005 9:00
AM
Subject: RE: Problems
Can somebody tell me the easiest way to serialize Java-Objects in XML with the Apache XML beans?
greez
Armin Buttinger
"Radhakrishnan J" <[EMAIL PROTECTED]> schrieb:
> In 2.0.0, its available in the 'jsr173_api.jar'. I'm assuming it hasn't
> changed with the latest release.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 24, 2005 6:21 PM
> To: [email protected]
> Subject: Problems
>
>
> Hi,
>
> I've got a Problem.
> I cannot start the "getting started" example, because the package
> "Javax.xml.stream" is not found. Where I can find this package?
> And does anybody know How saving Java objects into XML with Apache XML
> beans?
>
> Greez
> Armin Buttinger
> ------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

