[XML-SIG] namespaces and sax questions

Lars Marius Garshol larsga@garshol.priv.no
11 Sep 2001 21:35:19 +0200


* Lars Marius Garshol
|
| Apparently you are using pyexpat, which doesn't reveal the original
| qualified name. If you try using xmlproc you should get the qname.

* Roman Suzi
| 
| Does it mean, that my code is right and the problem is indeed in
| the expat? If so, are pyexpat + namespaces usable?

Your code is right, but I'm not sure there is a problem anywhere. If
you want to use namespaces you don't need the qualified name, since
the URI + localname is what you should be using. If you're not
interested in the URI + localname, but only want the 'raw' name from
the XML document you shouldn't be doing namespace processing at all.

It would be better if expat reported the qualified name, but it does
not, and there is nothing the SAX driver can do about this. I don't
think this is much of a problem. If you really want this you can use
xmlproc. 
 
--Lars M.