*
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


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 "XML + DTD -> XML Schema" Watch "XML + DTD -> XML Schema" New topic
Author

XML + DTD -> XML Schema

Punitha Reddy
Greenhorn

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.
Thanx
Punitha
Ajith Kallambella
Sheriff

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
Greenhorn

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

Joined: May 23, 2001
Posts: 3
Ajith,
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.
Punitha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML + DTD -> XML Schema
 
Similar Threads
Generic XML parsing
Making a DTD/XML schema from xml file
XML validation by DTD and schema
Howto validate xml schema?
Which parser to choose DOM or SAX?