Search Postgresql Archives

Re: xpath differences between postgres 11.4 and 10.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.g.johnston@xxxxxxxxx>) escribió:
On Friday, July 5, 2019, Felipe de Jesús Molina Bravo <fjmolinabravo@xxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux