Validating XML files with DTD in Catalog [message #171718] |
Tue, 20 June 2006 14:33 |
Eclipse User |
|
|
|
Originally posted by: dserodio.gmail.com
I have a log4j.xml file with the following DOCTYPE declaration:
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
I have added "log4j.dtd" to Eclipse's XML Catalog, like:
URI:
file:///C:/Java/lib/logging-log4j-1.2.13/docs/api/org/apache /log4j/xml/log4j.dtd
Key Type: System ID
Key: log4j.dtd
But Eclipse complains that it can't validate (the src/resources/
directory mentioned is where the XML file lives):
```The file cannot be validated as the XML Schema "C:\Documents and
Settings\dserodio\workspace\xpto\src\resources\log4j.dtd (The system
can't find the specified file)" that is specified as describing the
syntax of the file cannot be located.´´´
Shouldn't it be able to find the DTD I specified in the XML Catalog?
Thanks in advance,
Daniel Serodio
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03390 seconds