Comments on: What is JAXB and JAXB Example Code http://blog.adamsbros.org/2010/02/07/jaxb-example-code/ Mon, 06 Jan 2014 08:35:14 +0000 hourly 1 https://wordpress.org/?v=5.2.2 By: Trenton http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-2421 Mon, 06 Jan 2014 08:35:14 +0000 http://blog.adamsbros.org/?p=200#comment-2421 I can’t have a solution, without knowing the problem.

]]>
By: Harish http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-2404 Sat, 04 Jan 2014 20:13:39 +0000 http://blog.adamsbros.org/?p=200#comment-2404 It’s not working on jdk1.5.
Do you have any solution for that.

]]>
By: Trenton http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1440 Tue, 02 Oct 2012 01:32:47 +0000 http://blog.adamsbros.org/?p=200#comment-1440 Hi Srini,

The example shows both converting XML to a Java object, and a Java object to XML.

Thanks.

]]>
By: smith http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1438 Mon, 01 Oct 2012 11:17:35 +0000 http://blog.adamsbros.org/?p=200#comment-1438 Nice example,easy to understand!

]]>
By: srini http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1409 Mon, 30 Jul 2012 06:16:08 +0000 http://blog.adamsbros.org/?p=200#comment-1409 how to convert xml to java object..

i would appreciate that example.

]]>
By: Hemanth http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1244 Tue, 29 May 2012 05:51:47 +0000 http://blog.adamsbros.org/?p=200#comment-1244 Really simplest and coolest example

]]>
By: GG http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1227 Sun, 13 May 2012 11:19:06 +0000 http://blog.adamsbros.org/?p=200#comment-1227 pretty printed XML output:
if (john.equals(johnRead))
{ // write the new object out as XML again.
writer = new StringWriter();
Marshaller marshaller =jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
marshaller.marshal(johnRead, writer);

System.out.println(“johnRead was identical to john: \n” + writer.toString());
}
else
{
System.out.println(“john and johnRead are not equal”);
}

]]>
By: Sergey http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1113 Fri, 13 Jan 2012 10:37:45 +0000 http://blog.adamsbros.org/?p=200#comment-1113 Is there a way how, using this example, to create output document without “standalone=”yes””?

]]>
By: Madhubabu http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1103 Fri, 23 Dec 2011 05:38:06 +0000 http://blog.adamsbros.org/?p=200#comment-1103 Good Example

]]>
By: venki http://blog.adamsbros.org/2010/02/07/jaxb-example-code/comment-page-1/#comment-1099 Fri, 09 Dec 2011 11:26:32 +0000 http://blog.adamsbros.org/?p=200#comment-1099 nice example

]]>