I try to generate a number of xml file which is containing the schema.I use jaxb to make xml file from schema but i did not able to add schema with in this xml.My desired file looks like
but till now i am able to generate xml file look like
I didn't understand how to add this schema under node.is there any way to add this schema under node using jaxb in java.Main part of my code is like
is there any way to change the code by which i can add schema with xml file.
our application actually check the file structure if it is not look like my given example then it will be deleted,So i should to follow this structure by which it will update the database.Now my question is that how can I add this my xml file using jaxb.