I'm trying to parse XML from various XML services of the monastery and got bitten by entities in attributes:
<info site="http://perlmonks.org/" sitename="PerlMonks" ticker_id="507 +310" gentimeGMT="2015-02-14 17:40:04" xmlstyle="clean" xmlmaker="XML: +:Fling 1.001" fetch_num="109" delta_since="2015-02-14 17:29:58&nb +sp;GMT" min_poll_seconds="600">Rendered by the Noderep XML Ticker</in +fo>
while entities in attributes seem to be allowed this format of delta_since="2015-02-14 17:29:58&nbsp;GMT" looks broken¹.
(compare also gentimeGMT="2015-02-14 17:40:04")
Could someone enlighten me if and why that's necessary?
Otherwise should it better be changed to delta_since="2015-02-14 17:29:58 GMT"?
Or are there date-time parsers requiring these entities?
¹) (or do I miss something in the XML specification?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date format in attributes of local XML API
by N-Wing (Deacon) on Feb 15, 2015 at 06:41 UTC | |
by tye (Sage) on Feb 15, 2015 at 19:29 UTC | |
by N-Wing (Deacon) on Feb 15, 2015 at 21:11 UTC | |
by tye (Sage) on Feb 15, 2015 at 21:40 UTC | |
by LanX (Saint) on Feb 15, 2015 at 22:13 UTC |