I have a string:
private str:String = '
<!DOCTYPE html>
<html>
<body>
<div>TEST</div>
<span id="t1">T1 Content</span>
<span class="t2">T2 Content</span>
</body>
</html>';
I want to parse the string. Next, I get innerHTMl via Object, ID or Class.
E.g.:
Objects: Body, Div, Span
IDs: t1
Classes: t2
In PHP with the class, it’s easy. But I could not create this build with Flex.
Thanks for help…
Convert it to native XML in as3, then use e4x to parse the information required:
For more on e4x, this is a good primer:
http://www.senocular.com/flash/tutorials/as3withflashcs3/?page=4