<?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: JAXB and creating elements from schema types</title>
	<atom:link href="http://davidrabinowitz.com/en/2009/11/30/jaxb-and-creating-elements-from-schema-types/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidrabinowitz.com/en/2009/11/30/jaxb-and-creating-elements-from-schema-types/</link>
	<description></description>
	<lastBuildDate>Tue, 20 Jul 2010 11:16:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Samuel Van Reeth</title>
		<link>http://davidrabinowitz.com/en/2009/11/30/jaxb-and-creating-elements-from-schema-types/#comment-16</link>
		<dc:creator>Samuel Van Reeth</dc:creator>
		<pubDate>Thu, 08 Jul 2010 16:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrabinowitz.com/en/?p=61#comment-16</guid>
		<description>A part of my previous post seems to be missing :-(

This is block to add in your schema:
xs:annotation&gt;
xs:appinfo&gt;
jaxb:globalBindings&gt;
xjc:simple /&gt;
/jaxb:globalBindings&gt;
/xs:appinfo&gt;
/xs:annotation&gt;</description>
		<content:encoded><![CDATA[<p>A part of my previous post seems to be missing <img src='http://davidrabinowitz.com/en/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>This is block to add in your schema:<br />
xs:annotation&gt;<br />
xs:appinfo&gt;<br />
jaxb:globalBindings&gt;<br />
xjc:simple /&gt;<br />
/jaxb:globalBindings&gt;<br />
/xs:appinfo&gt;<br />
/xs:annotation&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Van Reeth</title>
		<link>http://davidrabinowitz.com/en/2009/11/30/jaxb-and-creating-elements-from-schema-types/#comment-15</link>
		<dc:creator>Samuel Van Reeth</dc:creator>
		<pubDate>Thu, 08 Jul 2010 16:21:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidrabinowitz.com/en/?p=61#comment-15</guid>
		<description>Hi,

I had exactly the same problem, and I found the following blogpost:
http://weblogs.java.net/blog/2006/03/03/why-does-jaxb-put-xmlrootelement-sometimes-not-always

The solution is very simple: put the following block in your schema:








and add the following lines to the  tag:
xmlns:jaxb=&quot;http://java.sun.com/xml/ns/jaxb&quot;
jaxb:version=&quot;1.0&quot;
xmlns:xjc=&quot;http://java.sun.com/xml/ns/jaxb/xjc&quot;
jaxb:extensionBindingPrefixes=&quot;xjc&quot;

This will force JAXB to generate the @XmlRootElement annotation

I hope this also solves your problem</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had exactly the same problem, and I found the following blogpost:<br />
<a href="http://weblogs.java.net/blog/2006/03/03/why-does-jaxb-put-xmlrootelement-sometimes-not-always" rel="nofollow">http://weblogs.java.net/blog/2006/03/03/why-does-jaxb-put-xmlrootelement-sometimes-not-always</a></p>
<p>The solution is very simple: put the following block in your schema:</p>
<p>and add the following lines to the  tag:<br />
xmlns:jaxb=&#8221;http://java.sun.com/xml/ns/jaxb&#8221;<br />
jaxb:version=&#8221;1.0&#8243;<br />
xmlns:xjc=&#8221;http://java.sun.com/xml/ns/jaxb/xjc&#8221;<br />
jaxb:extensionBindingPrefixes=&#8221;xjc&#8221;</p>
<p>This will force JAXB to generate the @XmlRootElement annotation</p>
<p>I hope this also solves your problem</p>
]]></content:encoded>
	</item>
</channel>
</rss>
