ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] code challenge
by Morten Primdahl other posts by this author
Aug 9 2002 7:49AM messages near this date
RE: [xml-dev] code challenge | RE: [xml-dev] What the .... ? Referencing XSL stylesheets across domains
Toivo \"Deutsch\" Lainevool wrote:
>  Nope, that won't work, you can't construct a new loop in every call of
>  the method.

By changing
   getChildren((Element) child);
to
   elements.addAll(getChildren((Element)child));

He should be fine though (not considering efficiency).

Hoping that not all getElementsByTagName* methods are broke, original
poster could try:

NodeList list = document.getElementsByTagName("*");

Or document.getDocumentElement().getElementsByTagName("*") as the 
original code did, but that doesn't include the top level element in the
list.

Morten



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Jeff Lowery
Danny Ayers
Toivo "Deutsch" Lainevool
Morten Primdahl

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved