Hi
Just run into the same problem;I haven't solved it, but made some headway. First, it seems inconsistent between users (code works ok on my machine, but not others) - I've tried different versions of the Microsoft XML dll via VBA references, to no avail
Interestingly, I can stop the error by opening the xml file in notepad and removing the line in standard infopath header as shown below (though this is by no means a fix - infopath just replaces the deleted line whenever the form is re-edited)
.....