[XML-SIG] newbie question

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri, 18 May 2001 22:52:46 +0200


> What's better, the "raw" mapping documented above, or the Corba-style
> mapping? That is, self.nodeType or self._get_nodeType() ?
> 
> I am mainly interested to know which is most portable across Python DOM
> implementations, but I also care a bit about efficiency.

It's mainly a matter of personal taste. Some people believe in
accessor functions, some in attributes.

If you want to care about portability and speed, you should use
attributes. Whether you go through __getattr__ or not varies depending
on DOM implementation and attribute; most attributes will be directly
available, though.

Regards,
Martin