> hi people
>
> I'm searching a Java package similar to the XSU of Oracle for DB2 but
> I haven't found nothing.
>
> Do you know if it exists anything like that?
I had to Google for XSU, and it seems to be a tool to "shred" an XML
document into a set of relational tables.
Check out dxxshrd (alias shred) which is the command line interface to the
XML shredding stored procedures dxxShredXML and dxxInsertXML. The first
of these two stored procedures is the simpler to use, in my experience.
You map the XML to the table using a DAD (Data Access Descriptor) or, in V9,
an annotated XML Schema.
Producing DADs can be a bit laborious, although tools like Rational can make
an attempt at these. I wrote a Perl script to produce DADs for my
particular case from the relational schema.
However if you are using DB2 V9 you may want to consider whether you
actually need to decompose the XML at all, or whether you want to use the
pureXML functionality to store and access the data directly as parsed XML
documents (using a combination of SQL and XQuery).
HTH
Phil Nelson
ScotDB Limited
(teamdba@scotdb.com)