On 13 July 2010 09:03, ced45 <cedric.duprez@xxxxxx> wrote: > > Hi List, > > I have trouble using XPath name() function in a XML field. > For example, when I execute the following query : > > SELECT XPATH('name(/*)', XMLPARSE(DOCUMENT '<unit>value</unit>')) > > I would like to get "unit", but I just get an empty array ({}). > How can I get "unit" ? > eneral@xxxxxxxxxxxxxx) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > Have you tried: SELECT XPATH('fn:name(/*)', XMLPARSE(DOCUMENT '<unit>value</unit>')); Thom -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general