Solved

retrive from database table and put in xml

Posted on 2007-04-09
2
210 Views
Last Modified: 2010-04-16
I have a few records in a table in oracle database. I want to retrived a set of numbers based on a query and then put each number in an xml file.

So bascially want to pick up data from teh database and ut it in the xml file. How can I do it ?
0
Comment
Question by:anup001
2 Comments
 
LVL 9

Accepted Solution

by:
Suhas . earned 250 total points
ID: 18880346
for retriving from database, use DBI module,

http://search.cpan.org/~timb/DBI-1.54/DBI.pm

open an xml file in write mode, and dump the extracted data to that file.
0
 
LVL 11

Assisted Solution

by:Vivek Thangaswamy
Vivek Thangaswamy earned 250 total points
ID: 18881049
Hi

Ref this link
http://www.psoug.org/reference/xmlquery.html  this Oracle query will returns the data as XML

Using an Oracle View to store query results as an XML output
http://rustemsoft.com/oraxml.htm
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

1 Experts available now in Live!

Get 1:1 Help Now