[JDOM] problems including a DTD

E

Ekim

hy,
I've got a problem concerning my DTD when including a XML-file into a
Java-JDOM-program.

I always get the following error message:
"relative URI "Treibstoff-Verbrauch_01.dtd"; cannot be resolved without a
base-URI"

my DTD-inlcude in my XML-File looks like this:
<!DOCTYPE Treibstoff-Verbrauch SYSTEM "Treibstoff-Verbrauch_01.dtd">



So what's wrong with it? Maybe I did include the DTD wrong into the XML-File
(maybe wrong System-URI)?

-----------------------------

for completion, the part of reading the XML-File in my JDOM-program looks
like the following:
SAXBuilder saxBuilder = new SAXBuilder(false);
Document doc = saxBuilder.build(new FileInputStream(new
File(fileName)));

------------------------------

I hope you have any ideas,
thx in advance,

ekim
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top