CC: | pagaltzis [...] gmx.de |
Subject: | XML::Atom::SimpleFeed |
Date: | Fri, 20 Jun 2008 11:39:04 -0400 |
To: | bug-xml-atom-simplefeed [...] rt.cpan.org |
From: | "Andrew Smith" <andrewksmith [...] gmail.com> |
Hi,
I've been using XML::Atom::SimpleFeed and find it to be quite nice, but I
have an issue (maybe its a bug) regarding entity encoding. It seems the code
sometimes automatically entity encodes arguments and sometimes it does not.
For example, if I pass an argument for 'id' like '
http://www.example.org?var1=val1&var2=val2' then the '&' characters are not
encoded automatically, and I have to manually encode them so well-formed XML
is generated. However, if I passed the same thing as the 'href' attribute of
'link' then it gets automatically encoded. I'm not sure if this is the way
the code is supposed to work, but it is confusing not knowing when you have
to automatically entity encode and when the module will do it for you ---
should be documented at least.
thanks,
Andrew