0

I want to make an java application where user give any xml schema and application generate xml file holding with xml schema and using this application user can put value in xml file.

I try to make this application using jaxb here I generate xml schema to java source using xjc "xsd file name" and then compile it so it creates class file and using them to create xml file.but creating xml file is depends upon generated java source,how can i make it dynamic.how can i make class file from my application automatically and using it to create xml file.

saba
  • 539
  • 1
  • 14
  • 30
  • related: http://stackoverflow.com/questions/3478508/jaxb-ant-task-error-xjc2-error-null-unknown-location – Bozho Feb 02 '12 at 19:09
  • @bozho thanks for help.xjc now do this things from code.but how to compile this java file from my code and how to use this class to generate xml file and put data into the xml from my application. – saba Feb 02 '12 at 19:42
  • you can try [http://code.google.com/p/jlibs/wiki/XSInstance](http://code.google.com/p/jlibs/wiki/XSInstance) – Santhosh Kumar Tekuri Feb 03 '12 at 08:32
  • You can try: https://stackoverflow.com/questions/45460262/java-code-to-create-xml-file-from-xsd-without-any-pojo – Anees Ahmed Mohammed Aug 04 '17 at 09:46

0 Answers0