[XML-SIG] namespaces and sax2

Sylvain Thenault Sylvain.Thenault@logilab.fr
Tue, 13 Nov 2001 15:55:50 +0100 (CET)


hi!

I have a xml document like this:

------------------------------
<memory>
  <match xmlns:test='test_uri'>test:valid/xpath</match>
</memory>
-----------------------------

I want to read it using make_parser and my own sax2 handler, with the
feature_namespace enabled.

The problem is that didn't manage to retrieve the namespace associated
with the "test" prefix, since it isn't used by any node and xmlns
attributes are not reported and startPrefixMapping is never called.

Do I have to disable namespaces and do it by hand ?

TIA

-- 
Sylvain Thenault

  LOGILAB           http://www.logilab.org