in reply to Re^2: Repair malformed XML
in thread Repair malformed XML

No, he wants to write an XML tokenizer. Which would do the trick - that is, that will implement his algorithm. (An algorith of which no garantees can be made to be correct).