Re: xpath differences between postgres 11.4 and 10.3

From: Felipe de Jesús Molina Bravo <fjmolinabravo(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: xpath differences between postgres 11.4 and 10.3
Date: 2019-07-06 22:09:17
Message-ID: CALrs2KM7iqBSKKvYxN7g+BCy=a=pn6yMAKzA2dZ4z0YdRpBPMw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ok David I get it! now i undestand the note!!

very grateful with your answer

See you!!

El sáb., 6 jul. 2019 a las 2:29, David G. Johnston (<
david(dot)g(dot)johnston(at)gmail(dot)com>) escribió:

> On Friday, July 5, 2019, Felipe de Jesús Molina Bravo <
> fjmolinabravo(at)gmail(dot)com> wrote:
>
>> <p idc="4776" rc="Cuadro" idrg="5"/>'
>>
>> *Per the SQL standard, relative paths start from the document node of the
>> XML input document, not the root node as these functions previously did.*
>>
>
> The absolute path to the 4776 in the document is:
>
> /p::attribute[id]
>
> In v10 relative pathing looks like (root element node):
>
> /p<you-are-here>::attribute[id]
>
> In v11 relative pathing looks like (document root node):
>
> /<you-are-here>p::attribute[id]
>
> You either need to specify your root element name in your xpath expression
> or, less precisely, use // to look for the attribute anywhere
>
> David J.
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2019-07-07 18:44:14 Re: pglogical extension. - 2 node master <-> master logical replication ?
Previous Message David G. Johnston 2019-07-06 07:29:34 xpath differences between postgres 11.4 and 10.3