You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Steffen <Gl...@gmx.net> on 2001/03/17 16:38:09 UTC
Exception parsing xhtml
Hi there,
i have a problem parsing xhtml with xerces 1.3.0
When i try to parse the following String:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/WD-html-in-xml/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <title>Virtual Library</title> </head>
<body> <p>Moved to <a href="http://vlib.org/">vlib.org</a> </p>
</body></html>
i get theException :The attribute type is required in the declaration of
attribute "events" for element "html".
I wrote my own Entity Resolver which i believe resolves the external
entities correctly.
Can anybody explain this exception to me ?
When i leave out the !DOCTYPE everything works fine, except the fact
that entities like ä
are giving exeptions since the entity can not be resolved since there is
no doctype.
Thanks for help
Steffen
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org