Re: parsing xHTML
Petr Stehlik <[email protected]> Mon, 15 Sep 2003 08:59:28 +0200
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
> file:///foo.html:2: Error: Element type "html" must be declared.
> Do I need some kind of DTD declaration in my HTML?
You just need a valid XHTML file. Try to compile something like the
following piece of xhtml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XHTML</title>
</head>
<body>
<p>Hello, world</p>
</body>
</html>