[XML-SIG] 4DOM and namespaces

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Wed, 21 Nov 2001 14:40:14 +0100 (CET)


While we are at it, a very common newbie question with 4DOM is "I've
parsed my document using Sax2.Reader().fromString(str), and I can't get
the value of the bar attribute using
doc.documentElement.getAttribute('bar') , though I can see it when I
PrettyPrint(doc)".

The answer is "use getAttributeNS(EMPTY_NAMESPACE, 'bar')", but maybe we
could enhance 4DOM to be non-NS-methods friendly. AFAIK, minidom offers
such syntaxic sugar. 

If people here think this would be a Good Thing (or at least something
nice), I'll be glad to implement it.

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).