I am facing the same problem, apostrophe when entered in the TEXT field of Infopath form and saved. When I reopen the form does not open. Yes if edit the XML file and remove the apostrophe it works.
The XML is generated by InfoPath, this form is a browser enabled form for SharePoint form library. And the Tags are well structured.