Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / August 2007

Tip: Looking for answers? Try searching our database.

XSU Java package with DB2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bea - 28 Aug 2007 16:03 GMT
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?
Philip Nelson - 28 Aug 2007 22:48 GMT
> 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)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.