[xml] Re: libxml1.0

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sun Mar 07 1999 - 17:37:35 EST


  Hi Waldo,

> While using libxml I encountered a problem with quotes. It seems that the
> entity " is not correctly interpreted inside an attribute value.
>
> If I understand the XML specs correctly, it is valid to write
> <TAG name='He said "Hello"'>
> as well as
> <TAG name="He said &#34;Hello&#34;">
>
> However, the latter results in a confused parser.

  Arghh, you're perfectly right,
~/XML -> cat tst
<TAG name="He said &#34;Hello&#34;">
</TAG>
~/XML -> ./tester tst
line 1: error: Couldn't find end of Start Tag
<TAG name="He said &#34;Hello&
"
 ^
~/XML ->

  it's a parser bug !
Seems to be in xmlParseAttValue(xmlParserCtxtPtr ctxt) the code doing
the entity handling there is probably broken, I will look at it,

  thanks,

 Daniel

-- 
	    [Yes, I have moved back to France !]
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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:26 EDT