If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > XML format of records in db2 tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-07-03, 08:52
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
XML format of records in db2 tables

Do we have a function or any tool to convert records of a table in DB2 into XML format?

TIA
Reply With Quote
  #2 (permalink)  
Old 11-07-03, 09:24
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: XML format of records in db2 tables

XML Extender

On V8, it is packaged with the database ..

In earlier versions, you will find this on a seperate CD



Cheers
Sathyaram


Quote:
Originally posted by ggnanaraj
Do we have a function or any tool to convert records of a table in DB2 into XML format?

TIA
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 11-07-03, 23:44
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Hi

Thanks for the input.

Would you be able to give the steps to get the XML format of all records in a table?

I'm looking for something like... for eg., to spool the following query to a file...assumming that there is a xml function...any pointers should be helpful.

Code:
select xml(empno, empname) from emp
TIA.

Last edited by ggnanaraj; 11-07-03 at 23:46.
Reply With Quote
  #4 (permalink)  
Old 11-08-03, 05:07
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I'd suggest that you visit the IBM website and read a user-guide to understand what can be done and cannot ...

Cheers
Sathyaram


Quote:
Originally posted by ggnanaraj
Hi

Thanks for the input.

Would you be able to give the steps to get the XML format of all records in a table?

I'm looking for something like... for eg., to spool the following query to a file...assumming that there is a xml function...any pointers should be helpful.

Code:
select xml(empno, empname) from emp
TIA.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On