Re: Simple way to load xml into table

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Simple way to load xml into table
Date: 2015-10-15 17:45:53
Message-ID: 561FE651.1030900@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/15/2015 11:38 AM, Emi wrote:
> Hello,
>
> For psql 8.3, is there a simple way to load xml file into table please?
>
> E.g.,
>
> <rec>
> <c1>True</c1>
> <c2>test1</c2>
> <c3>e1</c3>
> </rec>
> <rec>
> <c1>false</c1>
> <c2>test2</c2>
> </rec>
>
> Results:
> t1 (c1 text, c2 text, c3 text):
>
> c1 | c2 | c3
> -----------------------------
> true | test1 | e1
> false | test2 | null
> ......
>
> Thanks a lot!
>
>
Shame on Concordia! 8.3. Really? (Send this up the chain)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2015-10-15 18:02:54 Re: Simple way to load xml into table
Previous Message Emi 2015-10-15 17:38:16 Simple way to load xml into table