views:

75

answers:

1

I'm looking for a way to load invalid (malformed) XML into an AS3 XML object. Do you know a class or a technique to do so? I have to load malformed HTML and parse it as XML.

This is a Flex project so I can use Flex specific classes if needed!

I thought of using the HTMLLoader since it accepts all kinds of malformed HTML and renders it properly but couldn't get anything to work...

A: 

Done! Yet to be improved but quite fast and handy!

Class is here: https://code.google.com/p/as3-bits/source/browse/trunk/bits/src/net/tw/util/air/HTMLFixer.as

Enjoy.

Quentin