[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [syndication] Re: Automatically publish referrer data as RSS...
Karl Ove Hufthammer writes:
> And you can *almost* always skip 'gt', i.e. write it directly
> as '>'. The only time you have to write '>' (or a character
> reference), is in the string ']]>'
Wow. Sure enough:
echo '<stuff att="z>">></stuff>' | perl -e 'use XML::Parser; $t = ""; while (<>) {$t .= $_;} $p = XML::Parser->new(Style=>Debug); $p->parse($t);'
Gives:
\\ (att z>)
stuff || >
//
Yep, expat likes it. Learn a new thing every day.
Of course now I'll have this tick and look slightly (more) deranged
for the afternoon, but...
Dan
(Okay, learned my new thing, back to the grind...)