File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML validation?

 
Anand Seetharaju
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have two questions
1). Does DOM parser validate the XML file against DTD?
2). How do you specify numeric validation such as range or Boolean validation in DTD.for example:
Say I have <!ATTLIST subsection autoflush (true|false) #REQUIRED> here, I have specified that autoflush should require true|false values when the parser validates the XML against DTD.In the similar way, I reuire that field should only contain the numeric value and can contain range say between 10 to 20.
Can anybody explain this with a snippet of code?
Thanks
Anand.

------------------
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this question to the appropriate forum (XML, XSL, DOM and SAX)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic