Databases
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Databases

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 3rd, 2008, 02:31 PM
aravind chandu
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
xml and postgresql

Hi folks,



************
I need to load xml data in to database can you tell me they way how do
I import xml data into postgresql database.



lets dat this is the xml file



<bookstore>
<book category="CHILDREN">
<title>Harry Potter</title
<author>J K. Rowling</author
<year>2005</year
<price>29.99</price
</book>
<book category="WEB">
<title>Learning XML</title
<author>Erik T. Ray</author
<year>2003</year
<price>39.95</price
</book>
</bookstore>

so finally the table name should be bookstore and column names are category,title,
author,year,price and all the information in the xml file should be ported to the table
can you please tell me how to do this its a bit confusing to me as i am just a beginner to
this.

Thanks in advance,
Aravind.

Reply With Quote
  #2  
Old July 4th, 2008, 09:41 AM
Gwyneth Morrison
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
xml and postgresql

aravind chandu wrote: Hi folks,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I need to load xml data in to database can you tell me they way how do I import xml data into postgresql database.

lets dat this is the xml file



<bookstore> <book category="CHILDREN"> <title>Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category="WEB"> <title>Learning XML</title> <author>Erik T. Ray</author> <year>2003</year> <price>39.95</price> </book> </bookstore> so finally the table name should be bookstore and column names are category,title, author,year,price and all the information in the xml file should be ported to the table can you please tell me how to do this its a bit confusing to me as i am just a beginner to this. Thanks in advance, Aravind.




I have written a python program that may help you.

It is part of a larger project I hope to post in a few days.

Or I could sent it to you.

Gwyneth

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Databases > xml and postgresql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway