Is the following valid xml?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server>
<server>
 <classpath codebase="lib" archives="*"/>
</server>

Xerces DOMParser will not read past the <server> tag.
(tried v2.5.0 and v2.3.0)
(Am I missing some setting?)

I'm not sure exactly what that type of doctype declaration means and couldn't find an explanation in my search of web resources.
I figure it must mean either:
a) the only tag allowed here is the root element - <server>
(ie the file is not valid)
b) the only restriction here is the root element must be <server>
(ie the file is valid)





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to