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 > Re: xml and pos...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 15972 of 16301
Post > Topic >>

Re: xml and postgresql

by gwynethm@[EMAIL PROTECTED] (Gwyneth Morrison) Jul 4, 2008 at 10:01 AM

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
aravind chandu wrote:
<blockquote cite="mid:152688.69120.qm@[EMAIL PROTECTED]
"
 type="cite">
  <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
      <tr>
        <td
 style="font-family: inherit; font-style: inherit; font-variant: inherit;
font-weight: inherit; font-size: inherit; line-height: inherit;
font-size-adjust: inherit; font-stretch: inherit;"
 valign="top">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;
&lt;book category="CHILDREN"&gt;
  &lt;title&gt;Harry Potter&lt;/title&gt; 
  &lt;author&gt;J K. Rowling&lt;/author&gt; 
  &lt;year&gt;2005&lt;/year&gt; 
  &lt;price&gt;29.99&lt;/price&gt; 
&lt;/book&gt;
&lt;book category="WEB"&gt;
  &lt;title&gt;Learning XML&lt;/title&gt; 
  &lt;author&gt;Erik T. Ray&lt;/author&gt; 
  &lt;year&gt;2003&lt;/year&gt; 
  &lt;price&gt;39.95&lt;/price&gt; 
&lt;/book&gt;
&lt;/bookstore&gt;

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 
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.
        </pre>
        <br>
        <br>
        </td>
      </tr>
    </tbody>
  </table>
  <br>
</blockquote>
I have written a python program that may help you.<br>
<br>
It is part of a larger project I hope to post in a few days. <br>
<br>
Or I could sent it to you.<br>
<br>
Gwyneth<br>
</body>
</html>
 




 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 Thu Aug 21 18:10:15 CDT 2008.