Hi Boris,

That sounds perfectly reasonable. I think that XQilla already does all of those things, but it would be good to get it into Xerces-C too.

John

Boris Kolpackov wrote:
Hi John,

Another area where we can improvise the interface alignment
is DOMXPathNSResolver. I just had a quick chat with Alberto
and here are the changes that we both agree would make sense
(I hope the motivation is self-evident, if not -- let me know):

1. Add the ability to provide custom namespace-prefix mappings
   in the DOMXPathNSResolver interface. Something along these
   lines:

   virtual void
   setNamespacePrefix (const XMLCh* prefix, const XMLCh* uri);

   The new mapping will override any existing one. If NULL or
   empty string is passed as uri then the existing mapping, if
   any, is removed.

2. Change the createNSResolver() function in DOMXPathEvaluator
   to return read-write DOMXPathNSResolver (const right now).

3. Allow NULL to be passed to createNSResolver() in which case
   empty DOMXPathNSResolver will be created (can then be populated
   with setNamespacePrefix).


Let me know what you think.

Boris



--
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:            http://oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to