I'm no XML expert but why not put the HTML into an XML object and peruse it with e4X ??
--- In [email protected], "shizny" <w...@...> wrote: > > Hello, > > I'm trying to figure out how I can parse the html dom for a html page that > has loaded in HTML tag in Adobe AIR. I have an event listener waiting for > the html to complete and a function that is being called. I have seen a > bunch of examples that use a JavaScriptObject that is created from a > reference of the htmlDocument.window.document... > > var links:JavaScriptObject = > this.htmlWin.htmlLoader.window.document.getElementsByTagName("a"); > for(var j:Number = 0; j < links.length; j++) > { > trace(links[j].getAttribute("href")); > } > > Something like the above. My problem is that I'm not creating an HTML based > AIR file and don't have access to JavaScriptObject (or maybe it's > depreciated). I don't know, but I do know that I want to parse the html dom > once it is loaded to search for specific strings. Anybody know how to do > that/ Thanks in advance > > Josh >

