Is there a simpler way to generate the xml file from XSD in oracle?

Data is stored in relational tables and I would like to maintain the XSD file in a common server and use this XSD to generate the XML file. This will help to easily update the XSD if any changes in future.

I'm looking to build a generic code. Any idea would be appreciated.

Thank you.