[XML-SIG] Reconsidering the DOM API

Walter Doerwald walter@livinglogic.de
Wed, 28 Jun 2000 12:48:59 +0200


At 21:11 27.06.00, you wrote:
>Michael McLay wrote:
> >
> > ..
> >
> > a=3Db.get_childNode(0).get_attribute("abc")
>
>How do you get the list of childnodes and attributes?
>
> > or perhaps the call chain should be reduced by merging methods:
> >
> > c =3D b.get(childNode=3D0, attribute=3D"abc")
>
>How about childNodes[0].childNodes[1].childNodes[0].attributes["abc"]

Why not put children and attribute access into __getitem__
         c =3D b[0][1][0]["abc"]

Bye,
         Walter D=F6rwald

--
Walter D=F6rwald =B7 LivingLogic AG =B7 Bayreuth, Germany =B7 www.livinglogi=
c.de