This works great for doctypes that are validated by a DTD. However we have several doctypes that have Schemas. When trying to insert the file entity into an XML file that is validated by a schema I'm getting a context rules error. I believe this to be because it is looking for the namespace on the file it is inserting (xmlns attribute).
Since we are working with several different doctypes with different namespaces adding the xmlns attribute to the warning files is not possible.
Any guidance on how to address this issue would be great appreciated.