File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XML + DTD -> XML Schema 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 "XML + DTD -> XML Schema" Watch "XML + DTD -> XML Schema" New topic

XML + DTD -> XML Schema

Punitha Reddy

Joined: May 23, 2001
Posts: 3
I have a XML document and a DTD and I want to create XML schema
from these XML and DTD files. Is there a tool which can do this for me? I don't want to do it manually because I'll be getting different XML files each time.
Can some one help me with this.
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
I am not aware of any such tools. What do you mean when you say "I'll be getting different XML files each time" ? Don't they all have the same DTD or are they different?
Some clarification might help me give you a better answer!

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
khaled el-hajjar

Joined: Feb 18, 2001
Posts: 5
There is an application called XML spy can convert a DTD to Schema. Go to to get evaluation version.
I think it's better to write your own Schema yourself,
Punitha Reddy

Joined: May 23, 2001
Posts: 3
Thanks for replying
I have an HTML form where the user can request for some information, for example they can enter user id. Then I'll be creating an XML document from the HTMl form. Later I have a std
DTD to which I'll verify my XML document.Then I want to create a Java object for that XML document and send it to the backend. We don't want to send the XML file directly to the backend. We want to send only an object. I'll be creating the reply XML document from the reply object and send it back to the browser.
What I meant by different XML documents is that based on the input parameter, I'll be getting different reply from the backend.
I found out about castor which can convert XML schema - Object So I am trying to convert my XML and DTD to XML schema.
I hope the above explanation is clear.
I agree. Here's the link:
subject: XML + DTD -> XML Schema
jQuery in Action, 3rd edition