From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Nov 29 1999 - 03:59:05 EST
On Sun, Nov 28, 1999 at 03:03:42PM -0500, Bryan E. Chafy wrote:
>
> My xml file has some attributes without quotes:
>
> <?xml version="1.0"?>
> <!DOCTYPE client SYSTEM "client.dtd">
> <image href="img.gif" HEIGHT=0 WIDTH=22/>
>
> When I try to parse, I get:
>
> test.xml:3: error: AttValue: " or ' expected
> <image href="img.gif" HEIGHT=0 WIDTH=22/>
Your XML is broken, you have to quote attributes !
http://www.w3.org/TR/REC-xml#NT-AttValue
[10] AttValue ::= '"' ([^<&"] | Reference)* '"' |
"'" ([^<&'] | Reference)* "'"
Don't even try to bypass the error message, no XML parser will ever
return some data on such an input, this is not Well Formed XML.
> Also, why is libxml called the xml library for gnome? What's so
> gnome about it? It looks like a generic XML DOM/SAX parser usefull for
> things other than just gnome.
It was largely developped in the Gnome framework, is used by quite
a few Gnome apps, but I agree you can perfectly use it without gnome.
For example it doesn't depend on any Gnome lib, and should even work
on Windows.
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | Today's Bookmarks : Tel : +33 476 615 257 | 655, avenue de l'Europe | Linux, WWW, rpmfind, Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | rpm2html, XML, http://www.w3.org/People/W3Cpeople.html#Veillard | badminton, and Kaffe. ---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:53 EDT