This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML validation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML validation?" Watch "XML validation?" New topic
Author

XML validation?

Anand Seetharaju
Greenhorn

Joined: Jan 17, 2001
Posts: 1
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

Joined: Jan 30, 2000
Posts: 3222
    
    5
I am moving this question to the appropriate forum (XML, XSL, DOM and SAX)


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML validation?
 
Similar Threads
Which of the following are valid JSP code fragments?
path resolution problem for DTD file on Linux
Parsing XML using DOM
Why isn't the parser validating an xml against a schema
XML Validation in Castor