I have an XML Schema document of rather complicated structure with many child elements and attributes. How I can get a valid XML document with some data from MySQL database?