File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Question about generating XSD" Watch "Question about generating XSD" New topic
Author

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 w3schools.com: http://www.w3schools.com/Schema/schema_howto.asp
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

test.xsd:


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: http://aspose.com/file-tools
 
subject: Question about generating XSD