*
The moose likes XML and Related Technologies and the fly likes creating xml file with xml schema in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply locked New topic
Author

creating xml file with xml schema in java

moin roy
Greenhorn

Joined: Mar 28, 2012
Posts: 15
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.


Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

There's no need to have three copies of this question. Here's a link to the one which already has discussion: http://www.coderanch.com/t/572015/XML/there-java-API-generate-xml, I'm closing this one.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating xml file with xml schema in java