This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Question about generating XSD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Question about generating XSD" Watch "Question about generating XSD" New topic

Question about generating XSD

Susan Smith
Ranch Hand

Joined: Oct 13, 2007
Posts: 224
I have a question regarding generating XSD files.

I saw example in
It looks like this in the root element when you want to have an XML file refer to an XSD.

When I tried generating the XSD from the XML (I'm using "Oxygen XML Editor"), there are two files generated. For example if my XML file name is test.xml, it will generate two XSD: test.xsd and xsi.xsd



My question is: should I include this part below before or after I generate the XSD?

Since if I don't include this part, it looks like that it only generates one file, the test.xsd

Thanks in advance for all your help.
I agree. Here's the link:
subject: Question about generating XSD
Similar Threads
xml validation error:Caused by: nu.xom.ValidityException: Document is invalid: no grammar found
Validating a xml doc against schema
Help me for xsd creation
problem in applying restriction on xml attribute jaxb i.e. unable to do validation for attributes
validating xml