Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes XML and Related Technologies and the fly likes java+xml+xsd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "java+xml+xsd" Watch "java+xml+xsd" New topic


muthu bharathi
Ranch Hand

Joined: Dec 10, 2008
Posts: 97

Please i've need sample code for the following

or please provide any link for that..

1. Using XSD create XML document in java

2. Using XSD Validate XML Document in java

very urgent...........
with Thanks
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

As I said in your other post about this, the first isn't possible. You can't automatically generate XML from a schema.

The second: read this.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Consider Paul's rocket mass heater.
subject: java+xml+xsd
Similar Threads
Create XML Document using XSD
creating xml document using xsd
Parser for XML Schema which uses XSD
How to validate XML against XSD in using JDom
StAX xml validation