This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I am trying to read an XSD and generate xml based on it, tying together data from a database. What are my technology options?
While googling, I read one option where I could use an XSD parser(like Xerces XML Schema API) and navigate thru the XSD and generate xml for each element. Are there any apis to generate elements into a DOM tree based on XSD definitions?
I greatly appreciate if anyone who has done similar things could shed some light on this.
Vijay.
Vijay Raj
Ranch Hand
Joined: Oct 10, 2005
Posts: 110
posted
0
Please anyone, I really need help. Any pointers? I need to start with the development.
Regards, Vijay.
Roseanne Zhang
Ranch Hand
Joined: Nov 14, 2000
Posts: 1953
posted
0
I might be out of date, please tell me if I am wrong. Here are 2 answers I wrote several years ago.
So do you say that I cannot generate XML depending upon the schema. The last statement in one of your posts "Then why we need the XML schema?" sounds fair.
Can I make a single XSD which covers all possible XML outputs(those legal in terms of my application), can I then generate the XML?
I was going through JAXB where in "xjc" was used to generate .java classes and then transformed to XML. I there anythign similar in Java 1.4 (xjc generates Java 5 code).
Jerry, please refrain from advertising your product. All posts like that are moved to blatant advertising.
XMLSpy is a great program, but will not help the original poster as they are not looking to create xml docs through another program, but through Java code.