Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

creating xml file with xml schema in java

 
moin roy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic