revCreateXMLFromFile parsing entities?
Ken Ray
kray at sonsothunder.com
Mon Jan 2 17:47:49 EST 2006
On 1/2/06 4:06 PM, "Peter T. Evensen" <pevensen at siboneylg.com> wrote:
> I get an error saying that "Entity 'cent' is not defiled" if I have the
> following in my XML file:
>
> <PostfixUnit>¢</PostfixUnit>
>
> 1) are entities defined on XML? Should the library even be trying to parse
> it? I wanted it to just leave it alone and pass it to me so I can handle
> it with htmlText of a field.
> 2) if they are defined, why isn't ¢?
>
> If I remove the ';', I get an error from xmlParseEntityRef, so clearly the
> library is trying to parse entities, but should it?
>
> There is also a bug related to it's handling of entities (if it is supposed
> to handle the entities)... if I use the numeric code for ¢ (i.e.,
> ¢), I get a cent sign, but it has a capital A with a circumflex over
> it. I BZed this a while back.
I don't know if the revXML DLL handles this kind of thing... if your files
aren't too large, you may wish to try my all-Transcript XML library, which
handles these without issue. If you're interested, contact me off-list as
I'm getting ready to release a major upgrade to the library (2.0) which
isn't available from my web site yet (only 1.1.7 is available publicly).
Thanks,
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list