W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2000

Get nodes from document ?

From: Lothar Behrens <lothar.behrens@okay.net>
Date: Sat, 21 Oct 2000 17:56:18 +0200
Message-Id: <200010211609.SAA31606@server.lothar.de>
To: www-dom@w3.org
Hello,

I try to get nodes from a DOM document. My document can contain
several nodes with this "path" to it:

.../Modules/Module/Functor

Real content may be:

.../Modules/Module/Functor
           /Attr/name="mod1"
                  /Attr/name="Ftor1"
.../Modules/Module/Functor
           /Attr/name="mod1"
                  /Attr/name="Ftor2"
.../Modules/Module/Functor
           /Attr/name="mod2"
                  /Attr/name="Ftor1"

This does not work (because a tagname is only this "Functor"): 
DOM_NodeList nodes = getElementsByTagName("/Modules/Module/Functor");

How can I get a list of that nodes ?


Thanks

Lothar

--------------------------------------------------------
Lothar Behrens    | Company: lothar.behrens@giquadrat.de
Borsteler Bogen 4 |     C++ is the future, LINUX too :-)
22453 Hamburg     |     have a look at www.wxWindows.org
Received on Saturday, 21 October 2000 11:51:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT