Re: XML parsing error

John Russell wrote:

> <img src="foobar.gif"alt="special picture" />

This fragment is indeed not well-formed, there must be whitespace before
"alt", cf. <http://www.w3.org/TR/REC-xml#NT-STag> and
<http://www.w3.org/TR/REC-xml#NT-EmptyElemTag>. The W3C validator has some
limitations concerning XML, cf. <http://openjade.sourceforge.net/doc/xml.htm>,
so it's probably a bad idea to use it for XHTML validation. XML schema
validators work much better, e.g. try
<http://www.w3.org/2001/03/webdata/xsv?docAddrs=http://www.example.org/+http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd&style=offline>.
Additional XHTML schemas are available at <http://www.w3.org/TR/xhtml1-schema/>.

-- 
<http://schneegans.de/>

Received on Friday, 11 July 2003 14:46:21 UTC