Good Day Monks. I am trying to parse and atom feed using XML::TreeBuilder and its parser method is blowing up on the following a particular line. I would include the whole thing here, but based on the preview results it does bad things to the permonks page parser. So I include the first field, which is enclosed by an id tag and says:
tag:amazingracewiki.cbs.com,2007-04-03:/page/Race+Improvements/thread/
+580644/Canadian+Contestants+n&%2339;+More+heart+pumping+suspense.?off
+set=0&maxResults=20/reply1
The parser is complaining about column 147 where begins the sequence &%2339; I guess the parser is treating this as an invalid escape sequence but it's part of a URL so who knows what it really is.
Question is, how can I deal with this? I don't want to throw away the whole feed because of this one squirrely entry. Is there some way to get the parser to throw out this one entry rather than DIEing?
Thx...
Steve
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.