I’m coding some ActionScript 3 app that needs to request some HTML page and analyse it. I am fetching it and parsing as XML – so far so good. Now, I’ll have to check for many various things in it and I have no idea how to do that without too much coding and fixed things.
Are there any AS3 methods or libraries, that would allow for quick searching in XML, for example by class/id attribute, preferably using css selectors – i.e. #id .className1 > .className2, etc?
The idea is that I want more maintainability than optimizations, as there’s a chance it will involve many changes in the future.
So, are there any libraries or methods that could make querying xhtml easier? Or maybe something open source with css selectors that I could base my code on?
Well, E4X is already built in… and CSS selectors will work on HTML text, if you’re going to display it in a text field.