Re: [PATCHES] xpath_array with namespaces support - Mailing list pgsql-hackers

From Nikolay Samokhvalov
Subject Re: [PATCHES] xpath_array with namespaces support
Date
Msg-id e431ff4c0704040643j2374504dq278a205ecd27baf7@mail.gmail.com
Whole thread Raw
In response to Re: [PATCHES] xpath_array with namespaces support  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On 4/4/07, Peter Eisentraut <peter_e@gmx.net> wrote:
Am Mittwoch, 4. April 2007 14:43 schrieb Nikolay Samokhvalov:
> > Why do we even need to support xpath on fragments?
>
> Why not? I find it useful and convenient.

Well, rather than inventing bogus root wrapper elements, why not let users
call xmlelement() to produce the wrapper element themselves?

User may even don't know in what case wrapper element is needed. I mean, if user works with XML column containing both documents and fragments, then what must he do? Add wrapper anyway? So, users will add XMLELEMENT in almost any case.

I'd prefer to keep external interfaces simpler (less thinking in such cases for users).

--
Best regards,
Nikolay

pgsql-hackers by date:

Previous
From: "Nikolay Samokhvalov"
Date:
Subject: Re: [PATCHES] xpath_array with namespaces support
Next
From: "Nikolay Samokhvalov"
Date:
Subject: Re: --enable-xml instead of --with-libxml?