• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML + DTD -> XML Schema

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic