View Single Post

   
  #2 (permalink)  
Old 04-12-2008, 09:10 AM
Nikolay Samokhvalov
 
Posts: n/a
Default Re: [PATCHES] xpath_array with namespaces support

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

Reply With Quote