Hey guys,
I am stuck with a complicated problem. I want to achieve the following: When I open a normal XML File (using the Eclipse Menu Point "Open With" > "XML Editor" or just performing a double-click on the corresponding XML-File), I want to add something to the DocumentBuilderFactory object which is responsible for the XML Validation before the user sees it in the workbench window.
What I want to achieve is actually a XML Validation using XSD Files without having to define a XSD File as a parameter in the root node but only by setting it in the object which is responsible for this validation (so only programmatically, not hard-coded).
I should not create a new XML Editor by extending the class XMLMultiPageEditorPart but I have to stick to the given XML Editor from Eclipse.
Validating with XML Schema explains how to set attributes in an instance of the DocumentBuilderFactory.
I don't know how to find the code responsible for the opening of a XML File with the normal editor (I tried to find it with the Plugin Spy but had no success), and I also don't know yet how to add the new functionality in the code.
Can someone help me? Thank you.