<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vitor Rodrigues &#187; purexml</title>
	<atom:link href="http://www.vitorrodrigues.com/blog/tag/purexml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vitorrodrigues.com/blog</link>
	<description></description>
	<lastBuildDate>Mon, 28 Sep 2009 18:05:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Search for the XML Superstar</title>
		<link>http://www.vitorrodrigues.com/blog/2008/12/03/search-for-the-xml-superstar/</link>
		<comments>http://www.vitorrodrigues.com/blog/2008/12/03/search-for-the-xml-superstar/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 03:29:52 +0000</pubDate>
		<dc:creator>vitor</dc:creator>
				<category><![CDATA[DB2 pureXML]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[challenge]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[idug]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[purexml]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.vitorrodrigues.com/blog/?p=136</guid>
		<description><![CDATA[IDUG (the International DB2 Users Group) is sponsoring a worldwide contest initiative called The XML challenge &#8211; Search for the xml superstar. This contest aims to recognize developers (students or professionals) that create XML solutions, in one of the following categories: Video, Gadget, Query, PortableApp and XML Contest. They are offering thousands of dollars in [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://xmlchallenge.com"><img src="http://xmlchallenge.com/sites/all/themes/ibm/images/gr_xml_challenge_logo.jpg" alt="" align="left" /></a>IDUG (the International DB2 Users Group) is sponsoring a worldwide contest initiative called <a href="http://xmlchallenge.com"><strong>The XML challenge &#8211; Search for the xml superstar</strong></a>. This contest aims to recognize developers (students or professionals) that create XML solutions, in one of the following categories: Video, Gadget, Query, PortableApp and XML Contest.</p>
<p>They are offering thousands of dollars in prizes, including Wiis, Zunes, iPods, Conference passes, Notebooks, GPS, etc&#8230;</p>
<p>If you live in US, you can submit your Video and Gadget entries until December 16th and 17th, respectively. The XML programming contest has also started and submissions will be accepted till January 31st.</p>
<p>For other countries, keep checking the website <a href="http://xmlchallenge.com">xmlchallenge.com</a> for updates on your local contest.</p>
<img src="http://www.vitorrodrigues.com/blog/?ak_action=api_record_view&id=136&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.vitorrodrigues.com/blog/2008/12/03/search-for-the-xml-superstar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Persisting XML with OpenJPA</title>
		<link>http://www.vitorrodrigues.com/blog/2007/10/23/persisting-xml-in-openjpa/</link>
		<comments>http://www.vitorrodrigues.com/blog/2007/10/23/persisting-xml-in-openjpa/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 18:15:46 +0000</pubDate>
		<dc:creator>vitor</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[db2express-c]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jpa]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[openjpa]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[persistence]]></category>
		<category><![CDATA[purexml]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.vitorrodrigues.com/blog/2007/10/23/persisting-xml-in-openjpa/</guid>
		<description><![CDATA[I&#8217;ve been looking at JPA &#8211; Java Persistence Architecture and decided to play a bit with OpenJPA using DB2 as the back-end. My goal: to persist and query XML data in DB2, making use of DB2&#8242;s pureXML capabilities to query the XML data using SQL/XML&#8216;s XMLQUERY() function. However, while OpenJPA has an extensive documentation, the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking at <a href="http://java.sun.com/javaee/overview/faq/persistence.jsp">JPA &#8211; Java Persistence Architecture</a> and decided to play a bit with <a href="http://openjpa.apache.org">OpenJPA </a>using <a href="http://www.ibm.com/db2/express">DB2 </a>as the back-end. My goal: to persist and query XML data in DB2, making use of DB2&#8242;s <a href="http://www.ibm.com/software/data/db2/9/editions_features_purexml.html%20">pureXML </a>capabilities to query the XML data using <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=35341">SQL/XML</a>&#8216;s XMLQUERY() function.
</p>
<p>However, while OpenJPA has an <a href="http://openjpa.apache.org/docs/latest/manual/manual.html">extensive documentation</a>, the examples are not always complete and there isn&#8217;t a lot of information on the web regarding OpenJPA error determination and solving. So, here are some recommendations for some of the problems I have encountered. The class <em>xml.Addres</em>s is the one to be persisted as XML in the database using JPA and it is stored as the field <em>shipAddress </em>of the <em>Order </em>objects.<br />
  
</p>
<pre> [java] Exception in thread "main" &lt;openjpa-1.0.0-r420667:568756 fatal user error&gt;
org.apache.openjpa.persistence.ArgumentException:
Type "class xml.Address" does not have persistence metadata.&nbsp;
</pre>
<p><strong>Suggestion:</strong> Remove the reference to <em>xml.Address</em> from <em>persistence.xml</em>.&nbsp;
</p>
<pre>[java] Exception in thread "main" &lt;openjpa-1.0.0-r420667:568756 nonfatal user error&gt;
org.apache.openjpa.persistence.InvalidStateException:
Encountered unmanaged object "xml.Address@9b2a51" in
persistent field "xml.Order.shipAddress" of managed object "xml.Order@12b3349"
during flush.&nbsp; However, this field does not allow cascade persist.&nbsp;
You cannot flush unmanaged objects.
  [java] FailedObject: xml.Address@9b2a51
</pre>
<p><strong>Suggestion</strong><strong>:</strong> Make sure you have no <em>@Entity</em> or <em>@Embeddable</em> annotations in <em>xml.Address</em>. The main annotation is <em>@XmlRootElement</em>.
</p>
<pre> [java] Exception in thread "main" &lt;openjpa-1.0.0-r420667:568756 fatal general error&gt;
org.apache.openjpa.persistence.PersistenceException:
"xml" doesnt contain ObjectFactory.class or jaxb.index
</pre>
<p><strong>Suggestion</strong><strong>:</strong> add a file <em>jaxb.index</em> into your <em>xml </em>package containing all the classes to be persisted as XML: a file containing <em>Address</em> in our case.</p>
<img src="http://www.vitorrodrigues.com/blog/?ak_action=api_record_view&id=116&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.vitorrodrigues.com/blog/2007/10/23/persisting-xml-in-openjpa/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>DB2 on Rails update</title>
		<link>http://www.vitorrodrigues.com/blog/2007/10/17/db2-on-rails-update/</link>
		<comments>http://www.vitorrodrigues.com/blog/2007/10/17/db2-on-rails-update/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 20:45:35 +0000</pubDate>
		<dc:creator>vitor</dc:creator>
				<category><![CDATA[DB2 pureXML]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[db2onrails]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[oxm]]></category>
		<category><![CDATA[purexml]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.vitorrodrigues.com/blog/2007/10/17/db2-on-rails-update/</guid>
		<description><![CDATA[I&#8217;m back to fiddling around with my Ruby on Rails experiments(1)(2). I was able to create a very useful 2-way mapping between Ruby objects and xml data stored in DB2 pureXML. Basically, trying to replicate some of ActiveRecord&#8217;s functionality but for XML data. I still find it odd, though, that both ROXML and xml-mapping haven&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m back to fiddling around with my Ruby on Rails experiments(<a href="http://www.vitorrodrigues.com/blog/2007/06/13/ruby-libxml-annoyances/">1</a>)(<a href="http://www.vitorrodrigues.com/blog/2007/07/05/xml-mapping-in-ruby/">2</a>). I was able to create a very useful 2-way mapping between Ruby objects and xml data stored in DB2 pureXML. Basically, trying to replicate some of ActiveRecord&#8217;s functionality but for XML data. I still find it odd, though, that both <a href="http://roxml.rubyforge.org">ROXML </a>and <a href="http://xml-mapping.rubyforge.org/">xml-mapping</a> haven&#8217;t had much activity as of late. I&#8217;m wondering if there is any new OXM library around that I don&#8217;t know of.<br />
  
</p>
<p>Also on the same topic:
</p>
<ul>
<li>the main <a href="http://db2onrails.com/">DB2 on Rails</a> website is up and running again, with a revamped design and now using wordpress instead of typo.</li>
<li>a new version of the ibm_db driver was also released, containing several bugfixes. Update it through gems (gem update ibm_db) or from here: http://rubyforge.org/projects/rubyibm/&nbsp;</li>
</ul>
<img src="http://www.vitorrodrigues.com/blog/?ak_action=api_record_view&id=114&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.vitorrodrigues.com/blog/2007/10/17/db2-on-rails-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML and Databases</title>
		<link>http://www.vitorrodrigues.com/blog/2007/08/13/xml-and-databases/</link>
		<comments>http://www.vitorrodrigues.com/blog/2007/08/13/xml-and-databases/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 18:55:11 +0000</pubDate>
		<dc:creator>vitor</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[db2]]></category>
		<category><![CDATA[purexml]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[toread]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.vitorrodrigues.com/blog/2007/08/13/xml-and-databases/</guid>
		<description><![CDATA[I just stumbled across an excellent resource regarding XML technology in databases. Ronald Bourret has the most extensive research I&#8217;ve seen on the global XML and databases state of the art. It has an extensive list of databases with XML support (native or by means of extenders/adapters) recently updated and several papers on XML and [...]]]></description>
			<content:encoded><![CDATA[<p>I just stumbled across an excellent resource regarding XML technology in databases. <a href="http://www.rpbourret.com/contact.htm">Ronald Bourret</a> has the most extensive research I&#8217;ve seen on the global XML and databases state of the art. It has an <a href="http://www.rpbourret.com/xml/XMLDatabaseProds.htm">extensive list of databases with XML support</a> (native or by means of extenders/adapters) recently updated and <a href="http://www.rpbourret.com/xml/index.htm">several papers on XML and databases</a>.&nbsp;
</p>
<p>A must read, that I will be consuming over the coming weeks.&nbsp;</p>
<img src="http://www.vitorrodrigues.com/blog/?ak_action=api_record_view&id=101&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.vitorrodrigues.com/blog/2007/08/13/xml-and-databases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CASCON 2006</title>
		<link>http://www.vitorrodrigues.com/blog/2006/09/06/cascon-2006/</link>
		<comments>http://www.vitorrodrigues.com/blog/2006/09/06/cascon-2006/#comments</comments>
		<pubDate>Wed, 06 Sep 2006 14:00:13 +0000</pubDate>
		<dc:creator>vitor</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[DB2 pureXML]]></category>
		<category><![CDATA[cascon]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[demo]]></category>
		<category><![CDATA[purexml]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://www.vitorrodrigues.com/blog/2006/09/06/cascon-2006/</guid>
		<description><![CDATA[CASCON 2006 wil take place from October 16 to October 19, in Toronto, Canada.&#160; &#34;CASCON 2006 is the 16th in the Annual International Conference hosted by the IBM Centers for Advanced Studies. This &#34;Meeting of Minds&#34; provides an exciting forum for exchanging ideas and experiences in the ever-expanding and critical fields of software development and [...]]]></description>
			<content:encoded><![CDATA[<p><a title="CASCON 2006" href="https://www-927.ibm.com/ibm/cas/cascon/">CASCON 2006</a> wil take place from October 16 to October 19, in Toronto, Canada.&nbsp;</p>
<p style="direction: ltr;"><em>&quot;CASCON 2006 is the 16th in the Annual International Conference hosted<br />
by the IBM Centers for Advanced Studies. This &quot;Meeting of Minds&quot;<br />
provides an exciting forum for exchanging ideas and experiences in the<br />
ever-expanding and critical fields of software development and<br />
computing.&quot;</em></p>
<p> I will be presenting at CASCON, doing both a workshop and a technology showcase. Both sessions will be about the same subject: DB2 9 and it&#8217;s pureXML™ features.</p>
<img src="http://www.vitorrodrigues.com/blog/?ak_action=api_record_view&id=8&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.vitorrodrigues.com/blog/2006/09/06/cascon-2006/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

