This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
I agree. Here's the link:
subject: java+xml+xsd
Similar Threads
Create XML Document using XSD
StAX xml validation
How to validate XML against XSD in using JDom
creating xml document using xsd
Parser for XML Schema which uses XSD