I have a xml file. I am using 'MSXML2.DomDocument' to read the document. But if xml contains some invalid character , MSXML2.DomDocument generated parsing error. I used filetostr() and then strtran() function to replace string and then filetostr() but still that character is not removed.
Code: