I need some help with this. I have a XML schema and using this schema, I need to generate a XML Document instance in my java program. I will get the required element values some how but all I got to do is, use those values and create a XML document using the schema and return that document to the caller of the method.
All I have now is The XML Schema of the output document(that I am trying to generate) and data to be filled in the document.
I am sure there may be a simple solution and need some pointers.
I use AXIS for my webservices also if there is anything I can do using this to solve my above problem.
Appreciate time and help.
[ May 18, 2007: Message edited by: Ugender Rekulampally ] [ May 18, 2007: Message edited by: Ugender Rekulampally ]
Have a look at JaxMe. It has a generator to create Java classes from a XSD. On runtime you fill the classes' properties with setters and "marshal" it into a XML. hth cb [ May 18, 2007: Message edited by: Chris Baron ]