<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Speed up XML programming with JAXB</title>
	<atom:link href="http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/</link>
	<description>Summa Blog</description>
	<pubDate>Wed, 08 Feb 2012 05:07:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: jeff kish</title>
		<link>http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/comment-page-1/#comment-3134</link>
		<dc:creator>jeff kish</dc:creator>
		<pubDate>Sun, 03 Apr 2011 00:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=339#comment-3134</guid>
		<description>Hi.
Can anyone point to instructions or an overview on how to debug whether or not the annotations are generating correctly? I happen to be using someones JAXB program to generate java classes, however one of the getter methods is returning NULL when it should not, and I was told it was probably an improper annotation related issue.
I'm just coming up to speed, and being old, still have DTD's in my brain.

thanks
Jeff</description>
		<content:encoded><![CDATA[<p>Hi.<br />
Can anyone point to instructions or an overview on how to debug whether or not the annotations are generating correctly? I happen to be using someones JAXB program to generate java classes, however one of the getter methods is returning NULL when it should not, and I was told it was probably an improper annotation related issue.<br />
I&#8217;m just coming up to speed, and being old, still have DTD&#8217;s in my brain.</p>
<p>thanks<br />
Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10 practical recommendations for designing and building highly reusable XML Schemas &#124; Summa Blog</title>
		<link>http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/comment-page-1/#comment-1906</link>
		<dc:creator>10 practical recommendations for designing and building highly reusable XML Schemas &#124; Summa Blog</dc:creator>
		<pubDate>Tue, 10 Nov 2009 13:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=339#comment-1906</guid>
		<description>[...] Even if you are an XML schema expert, an XML Schema editor can help you become more productive. From my experience, a good tool must meet three basic requirements. First, it must provide auto-complete capabilities and allow you to validate the schema. The second requirement is that it should let you generate sample XML files with various options, such as for populating optional nested elements up to N levels. Finally, it must let you validate an XML file against a set of schemas. This last functionality is essential during integration testing for validating files generated by applications that are not relying on an XML binding framework. [...]</description>
		<content:encoded><![CDATA[<p>[...] Even if you are an XML schema expert, an XML Schema editor can help you become more productive. From my experience, a good tool must meet three basic requirements. First, it must provide auto-complete capabilities and allow you to validate the schema. The second requirement is that it should let you generate sample XML files with various options, such as for populating optional nested elements up to N levels. Finally, it must let you validate an XML file against a set of schemas. This last functionality is essential during integration testing for validating files generated by applications that are not relying on an XML binding framework. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Balderas</title>
		<link>http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/comment-page-1/#comment-1325</link>
		<dc:creator>Jorge Balderas</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=339#comment-1325</guid>
		<description>Das - I've never done that particular customization. My recommendation is to check out &lt;a href="http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html#wp149287" rel="nofollow"&gt;class and property bindings&lt;/a&gt;. You may be able to accomplish this by overriding the binding to use your own "first name" property (get/set implementation)... hope this helps!

&lt;code&gt;
  
    
  
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Das - I&#8217;ve never done that particular customization. My recommendation is to check out <a href="http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html#wp149287" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://java.sun.com/webservices/docs/1.5/tutorial/doc/JAXBUsing4.html#wp149287');" rel="nofollow">class and property bindings</a>. You may be able to accomplish this by overriding the binding to use your own &#8220;first name&#8221; property (get/set implementation)&#8230; hope this helps!</p>
<p><code></p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: das</title>
		<link>http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/comment-page-1/#comment-1321</link>
		<dc:creator>das</dc:creator>
		<pubDate>Sun, 28 Jun 2009 18:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=339#comment-1321</guid>
		<description>I want to create a custom getter method. I will explain.
If the generated default getter method for String firstName is

public String getFirstName(){
return this.firstName;
}

I want something like

public String getFirstName(){
if(this.firstName==null){
return new String("xyz");
}
}

In case of custom objects, I need something like

public MyObject getMyObject(){
if(this.myObject==null){
return new MyObject);
}
}

How can I do this using JAXB when I generate the beans from XSD.
Please help.

-Das</description>
		<content:encoded><![CDATA[<p>I want to create a custom getter method. I will explain.<br />
If the generated default getter method for String firstName is</p>
<p>public String getFirstName(){<br />
return this.firstName;<br />
}</p>
<p>I want something like</p>
<p>public String getFirstName(){<br />
if(this.firstName==null){<br />
return new String(&#8221;xyz&#8221;);<br />
}<br />
}</p>
<p>In case of custom objects, I need something like</p>
<p>public MyObject getMyObject(){<br />
if(this.myObject==null){<br />
return new MyObject);<br />
}<br />
}</p>
<p>How can I do this using JAXB when I generate the beans from XSD.<br />
Please help.</p>
<p>-Das</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Balderas</title>
		<link>http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/comment-page-1/#comment-235</link>
		<dc:creator>Jorge Balderas</dc:creator>
		<pubDate>Tue, 03 Mar 2009 02:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=339#comment-235</guid>
		<description>Thanks for adding the reference to &lt;a href="http://xstream.codehaus.org" rel="nofollow"&gt;XStream&lt;/a&gt;, Handerson. It is an interesting and practical approach. I specially liked the &lt;a href="http://xstream.codehaus.org/annotations-tutorial.html" rel="nofollow"&gt;annotations&lt;/a&gt; capability from XStream. It is good to know about it.

I should mention that JAXB allows generating an XML Schema from Java classes using the &lt;a href="https://jaxb.dev.java.net/guide/Invoking_schemagen_programatically.html" rel="nofollow"&gt;schemagen&lt;/a&gt; plugin. Not quite as practical as XStream, but can be useful in some cases.</description>
		<content:encoded><![CDATA[<p>Thanks for adding the reference to <a href="http://xstream.codehaus.org" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://xstream.codehaus.org');" rel="nofollow">XStream</a>, Handerson. It is an interesting and practical approach. I specially liked the <a href="http://xstream.codehaus.org/annotations-tutorial.html" onclick="javascript:pageTracker._trackPageview('/outbound/comment/http://xstream.codehaus.org/annotations-tutorial.html');" rel="nofollow">annotations</a> capability from XStream. It is good to know about it.</p>
<p>I should mention that JAXB allows generating an XML Schema from Java classes using the <a href="https://jaxb.dev.java.net/guide/Invoking_schemagen_programatically.html" onclick="javascript:pageTracker._trackPageview('/outbound/comment/https://jaxb.dev.java.net/guide/Invoking_schemagen_programatically.html');" rel="nofollow">schemagen</a> plugin. Not quite as practical as XStream, but can be useful in some cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Handerson Gomes</title>
		<link>http://www.summa-tech.com/blog/2009/02/24/speed-up-xml-programming-with-jaxb/comment-page-1/#comment-234</link>
		<dc:creator>Handerson Gomes</dc:creator>
		<pubDate>Mon, 02 Mar 2009 22:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.summa-tech.com/blog/?p=339#comment-234</guid>
		<description>I would like to add a reference to XStream (http://xstream.codehaus.org/) which is a plain library to serialize objects to XML and back again.

It has some customizations options and is very simple to use. It can work well in some scenarios, for example, when the need is to create an XML version of a Java Object, instead of writing Java code to handle a pre-defined XML format.

We have used XStream in a project to communicate with Flex using HTTP Services and it worked quite well.</description>
		<content:encoded><![CDATA[<p>I would like to add a reference to XStream (http://xstream.codehaus.org/) which is a plain library to serialize objects to XML and back again.</p>
<p>It has some customizations options and is very simple to use. It can work well in some scenarios, for example, when the need is to create an XML version of a Java Object, instead of writing Java code to handle a pre-defined XML format.</p>
<p>We have used XStream in a project to communicate with Flex using HTTP Services and it worked quite well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

