Re: Using XMLNAMESPACES with XMLEMENT

2021-09-26 Thread Pavel Stehule
wis > *Cc: *"pgsql-gene...@postgresql.org" > *Subject: *Re: Using XMLNAMESPACES with XMLEMENT > > > > Hi > > > > pá 24. 9. 2021 v 23:44 odesílatel Garfield Lewis < > garfield.le...@lzlabs.com> napsal: > > Hi All, > > > > I am att

Re: Using XMLNAMESPACES with XMLEMENT

2021-09-26 Thread Garfield Lewis
Thx @Pavel Stehule<mailto:pavel.steh...@gmail.com>, I’ll see if I can figure this out… ☺ Regards, Garfield From: Pavel Stehule Date: Friday, September 24, 2021 at 11:33 PM To: Garfield Lewis Cc: "pgsql-gene...@postgresql.org" Subject: Re: Using XMLNAMESPACES with XMLEME

Re: Using XMLNAMESPACES with XMLEMENT

2021-09-24 Thread Pavel Stehule
Hi pá 24. 9. 2021 v 23:44 odesílatel Garfield Lewis napsal: > Hi All, > > > > I am attempting to port the following statement from DB2z to Postgres: > > > > SELECT e.empno, e.firstnme, e.lastname, > > XMLELEMENT ( NAME "foo:Emp", > > XMLNAMESPACES('http://www.foo.com' AS "f

Re: Using XMLNAMESPACES with XMLEMENT

2021-09-24 Thread Rob Sargent
t 6:52 PM > To: Garfield Lewis > Cc: "pgsql-gene...@postgresql.org" > Subject: Re: Using XMLNAMESPACES with XMLEMENT > > > > > On Sep 24, 2021, at 3:44 PM, Garfield Lewis wrote: > > Hi All, > > I am attempting to port the follo

Re: Using XMLNAMESPACES with XMLEMENT

2021-09-24 Thread Garfield Lewis
I’m using PG v12.6 and no I haven’t tried the path function. Do you have an example? -- Regards, Garfield A. Lewis From: Rob Sargent Date: Friday, September 24, 2021 at 6:52 PM To: Garfield Lewis Cc: "pgsql-gene...@postgresql.org" Subject: Re: Using XMLNAMESPACES with XMLEMENT

Re: Using XMLNAMESPACES with XMLEMENT

2021-09-24 Thread Rob Sargent
> On Sep 24, 2021, at 3:44 PM, Garfield Lewis wrote: > >  > Hi All, > > I am attempting to port the following statement from DB2z to Postgres: > > SELECT e.empno, e.firstnme, e.lastname, > XMLELEMENT ( NAME "foo:Emp", > XMLNAMESPACES('http://www.foo.com' AS "foo"), >

Using XMLNAMESPACES with XMLEMENT

2021-09-24 Thread Garfield Lewis
Hi All, I am attempting to port the following statement from DB2z to Postgres: SELECT e.empno, e.firstnme, e.lastname, XMLELEMENT ( NAME "foo:Emp", XMLNAMESPACES('http://www.foo.com' AS "foo"), XMLATTRIBUTES(e.empno as "serial"), e.