• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check if DTD file is valid

 
Gobind Singh
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As part of my build process, I need to produce a set of DTD's.
Is there an ANT task which tells me if a DTD file is valid i.e well-formed?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I only see two validators - one built into Eclipse and the other is a web app. And doing a google search for "validate dtd" gives way too many hits on "validate an xml using dtd". Sorry. Maybe someone else will know.

Just a thought: what happens if you use the <xmlvalidate> task and give it an xml file and a DTD that is not valid? Perhaps that task might give a error if the DTD is not well formed...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic