I am developing a program where I want to create XSD file alongside the XML file.
Like if XML file updates then XSD file will also be updated instantly.I have written code using DOM approach that creates an XML file and can be updated upon users action.Now I also want to create an XSD file that would be used to validate the XML file at any time and also to define data structure of the XML file.
Is there any way to create XSD file alongside with XML file so that XSD file updates whenever XML file updated using DOM approach??