[xml] entity ref. in attribute value

Date view Thread view Subject view Author view

From: Petr Kozelka (pkozelka@centrum.cz)
Date: Tue Jun 27 2000 - 17:05:39 EDT


First of all, thank you (Daniel) for your quick replies.

Now I have this problem: with the SAX parser, I receive startElement notification with attribute list. But attribute values in this
list (each second string) are not unescaped, ie. when I have attribute like
<test we="you &amp; I"/>
I would expect to get the string "you & I" for the 'we' attribute, but what I get is exactly the same like what I have in xml file.
- is this correct ? (I suppose no)
- if yes, what I have to do to get the correct string? Do I have to parse the value myself ?

TIA,
Petr Kozelka

GN(CZ) Resources International, a.s. - http://www.gncz.cz
Corena Holding a.s. - http://www.corena.com
____________________________________________________________
Look at http://kozelka.hyperlink.cz/xmle - xmle, a DOM oriented XML editor

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

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