Article View: pl.comp.lang.javascript
Article #39184Re: childNodes -> DOM XML
From: Bogdan Blaszczak
Date: Fri, 24 Mar 2006 22:54
Date: Fri, 24 Mar 2006 22:54
16 lines
1494 bytes
1494 bytes
thauthim napisał(a):
>> Tak więc Ciebie interesują węzły z nodeType = 1.
>>
>
> dokladnie o to chodzilo. dziekuje i pozdrawiam ;)
W tym przypadku nie musisz iterowac wszystkich childNodes i sprawdzac
ich nodetypy. Wszak interesują Cię tylko elementy 'lista', a taką
tablice możesz uzyskać za pomocą metody
kraje=XML.getElementsByTagName('kraje')[0].getElementsByTagName('lista')
Rozwiązanie prostsze i szybsze.
--
BlaTek
Technical Details
Message-ID:
<e01ta6$eqr$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<dvrqef$io6$1@news.task.gda.pl> <dvrqko$ciu$1@node3.news.atman.pl> <dvrtq2$rfg$1@news.dialog.net.pl> <e01a25$89h$2@news.task.gda.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Bogdan Blaszczak <blatek@UsuN-AntyspaMpoczta.wprost.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: childNodes -> DOM XML Date: Fri, 24 Mar 2006 23:54:16 +0100 Organization: Disorganization Department Lines: 16 Message-ID: <e01ta6$eqr$1@atlantis.news.tpi.pl> References: <dvrqef$io6$1@news.task.gda.pl> <dvrqko$ciu$1@node3.news.atman.pl> <dvrtq2$rfg$1@news.dialog.net.pl> <e01a25$89h$2@news.task.gda.pl> NNTP-Posting-Host: ft126.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: atlantis.news.tpi.pl 1143240838 15195 80.53.45.126 (24 Mar 2006 22:53:58 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Fri, 24 Mar 2006 22:53:58 +0000 (UTC) User-Agent: Thunderbird X-Accept-Language: pl, en-us, en In-Reply-To: <e01a25$89h$2@news.task.gda.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit