Re: [PATCHES] xml2 contrib patch supporting default XML namespaces

From: "Nikolay Samokhvalov" <samokhvalov(at)gmail(dot)com>
To: "Mike Rylander" <mrylander(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCHES] xml2 contrib patch supporting default XML namespaces
Date: 2007-03-06 09:12:17
Message-ID: e431ff4c0703060112w2c9b11bev24aef050bce21351@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On 3/6/07, Mike Rylander <mrylander(at)gmail(dot)com> wrote:
> Attatched you'll find a patch that I've been kicking around for a
> while that I'd like to propose for inclusion in 8.3. I attempted to
> submit this through the original xml2 author (as far back as the 7.4
> days) but got no response.
>
> It's really fairly trivial, but I will be using the features it
> provides in production soon, so I'd like to see it applied against the
> contrib xml2 module. The patch adds support for default XML
> namespaces in xml2 by providing a mechanism for supplying a prefix to
> a named namespace URI. It then wraps the namespace-capable functions
> in backward-compatible equivalents so that old code will not break.

1) And what about non-default namespaces?
2) What if my XPath query has different prefix, that also should be
mapped to the same URI? (Not frequent case, but this really can occur
-- e.g. XML doc has prefix 'local' for URI='http://127.0.0.1', but
XPath should have 'loc' for the same URI.)

--
Best regards,
Nikolay

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message ITAGAKI Takahiro 2007-03-06 10:03:03 Re: Aggressive freezing in lazy-vacuum
Previous Message Peter Eisentraut 2007-03-06 08:49:43 Re: [PATCHES] xml2 contrib patch supporting default XML namespaces

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2007-03-06 09:58:11 Re: doc patch for Linux memory overcommit
Previous Message Peter Eisentraut 2007-03-06 08:49:43 Re: [PATCHES] xml2 contrib patch supporting default XML namespaces