Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create XML file from database on the fly.

Status
Not open for further replies.

potineni39

Programmer
Dec 17, 2001
1
US
Hi All,
I'm new to XML and wanted to use XML to create a dynamic treemenu in our application(Developed in JSP/Java). Firstly i wanted to know how i can create an XML file using database queries. Is it possible to create XML files on the fly and get data from the file in JSP/Javascript.
Any suggestions...

Thanks in advance
Praveen
 
I'm assuming you are using a relational database and, therefore, must format the output into xml since the database does not inherently support that.

I ask, because there are companies who support native xml storage. (I work for one called NeoCore, but this is not an endorsement of them. Others are Tamino, etc). The output from these kind of IM products are already in XML.

Not knowing the db you are working with, you may be able to output the results to a flat file, and use perl or some other scripting language to format the results. Many of the relational databases also have XML plug in software, but I'm not familiar with the ins and outs of it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top