Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > xml and postgre...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 15972 of 16553
Post > Topic >>

xml and postgresql

by avin_friends@[EMAIL PROTECTED] (aravind chandu) Jul 3, 2008 at 12:14 PM

--0-262130196-1215112464=:69120
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi folks,



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



lets dat this is the xml file



<bookstore>
<book category=3D"CHILDREN">
  <title>Harry Potter</title>=20
  <author>J K. Rowling</author>=20
  <year>2005</year>=20
  <price>29.99</price>=20
</book>
<book category=3D"WEB">
  <title>Learning XML</title>=20
  <author>Erik T. Ray</author>=20
  <year>2003</year>=20
  <price>39.95</price>=20
</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 ****ted
=
to the table=20
can you please tell me how to do this its a bit confusing to me as i am
jus=
t a beginner to=20
this.

Thanks in advance,
Aravind.





=0A=0A=0A      
--0-262130196-1215112464=:69120
Content-Type: text/html; charset=us-ascii

<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top'
style='font: inherit;'>Hi folks,<br>
<br>
&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 im****t xml data into postgresql database.<br>
<br>
lets dat this is the xml file<br>
<br>
<pre>&lt;bookstore&gt;<br>&lt;book category="CHILDREN"&gt;<br> 
&lt;title&gt;Harry Potter&lt;/title&gt; <br>  &lt;author&gt;J K.
Rowling&lt;/author&gt; <br>  &lt;year&gt;2005&lt;/year&gt; <br> 
&lt;price&gt;29.99&lt;/price&gt; <br>&lt;/book&gt;<br>&lt;book
category="WEB"&gt;<br>  &lt;title&gt;Learning XML&lt;/title&gt; <br> 
&lt;author&gt;Erik T. Ray&lt;/author&gt; <br> 
&lt;year&gt;2003&lt;/year&gt; <br>  &lt;price&gt;39.95&lt;/price&gt;
<br>&lt;/book&gt;<br>&lt;/bookstore&gt;<br><br>so finally the table name
should be bookstore and column names are
category,title,<br>author,year,price and all the information in the xml
file should be ****ted to the table <br>can you please tell me how to do
this its a bit confusing to me as i am just a beginner to
<br>this.<br><br>Thanks in advance,<br>Aravind.<br></pre>
<br>
<br>
</td></tr></table><br>



      
--0-262130196-1215112464=:69120--
 




 3 Posts in Topic:
xml and postgresql
avin_friends@[EMAIL PROTE  2008-07-03 12:14:24 
Re: xml and postgresql
gwynethm@[EMAIL PROTECTED  2008-07-04 10:01:41 
Re: xml and postgresql
william.bh@[EMAIL PROTECT  2008-07-04 12:01:46 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 22:41:30 CDT 2008.