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
|