|problem with validation of java-produced xml files (Properties-Class) [message #172978]
||Wed, 05 July 2006 08:46
Originally posted by: m.fernau.cps-net.de|
I sometimes use the Properties-Class to save different kinds of
informations. The Properties-Class can save this information into
xml-Files, but this generated xml-File seems to be invalid.
Please have a look at this small example:
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
4 <entry key="server.host">192.168.0.100</entry>
5 <entry key="truststore.path">/htdocs/2006/jsp/WEB-INF/truststore</entry >
This is a generated xml-file from Properties-Class. The wtp XML-Validator
now points on two errors in this file. On the fist line I get this
Referenced file contains errors (http://java.sun.com/dtd/properties.dtd).
For more information, right click on the message and select "Show
and on line 5 I get the following error:
The processing instruction target matching "[xX][mM][lL]" is not allowed.
The last error seems to be very content-independend and thus seems to be a
bug of the validator. If I delete or add some lines in this file, this
error-message goes up and down on other lines regardless of the content.
Well, I can't change this content because Properties will not be able to
load this content again. Is there a way to generally disable the validation
for this XML-File or can I do anything else to get rid of these messages?
Powered by FUDForum
. Page generated in 0.01920 seconds