JDOM SAXBuilder.setValidation()

F

FilexBB

I try to bypass DTD validation within a xml message with the following
statement using jdom API

SAXBuilder builder = new SAXBuilder(false);
builder.setValidation(false);
builder.build("c:/abc.xml");

In API documentation, it mentions "setValiation()" can bypass DTD
validation, but still got
java.io.FileNotFoundException: C:\xxx.dtd (The system cannot find the
file specified)

It's seem the setValidation doesn't work.

Please advise.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top