Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML + DTD -> XML Schema

 
Punitha Reddy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
khaled el-hajjar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic