Note that there are some explanatory texts on larger screens.

plurals
  1. POMismatched tag exception when parsing XML
    primarykey
    data
    text
    <p>This has become a real pain in my backside.</p> <p>The URL I'm trying to parse is <a href="http://torrentz.eu/feed_verifiedP?q=ubuntu" rel="nofollow">http://torrentz.eu/feed_verifiedP?q=ubuntu</a></p> <p>Here's a short version of the xml:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"&gt; &lt;channel&gt; &lt;title&gt;Torrentz - ubuntu&lt;/title&gt; &lt;link&gt;http://torrentz.eu/verified?q=ubuntu&lt;/link&gt; &lt;description&gt;ubuntu search&lt;/description&gt; &lt;language&gt;en-us&lt;/language&gt; &lt;atom:link href="http://torrentz.eu/feed_verifiedP?q=ubuntu" rel="self" type="application/rss+xml" /&gt; &lt;item&gt; &lt;title&gt;ubuntu 11 10 desktop i386 iso&lt;/title&gt; &lt;link&gt;http://torrentz.eu/8ac3731ad4b039c05393b5404afa6e7397810b41&lt;/link&gt; &lt;guid&gt;http://torrentz.eu/8ac3731ad4b039c05393b5404afa6e7397810b41&lt;/guid&gt; &lt;pubDate&gt;Thu, 13 Oct 2011 15:02:06 +0000&lt;/pubDate&gt; &lt;category&gt;apps linux applications os software&lt;/category&gt; &lt;description&gt;Size: 695 MB Seeds: 4,613 Peers: 161 Hash: 8ac3731ad4b039c05393b5404afa6e7397810b41&lt;/description&gt; &lt;/item&gt; &lt;/channel&gt; &lt;/rss&gt; </code></pre> <p>My code:</p> <pre><code> SAXParserFactory spf = SAXParserFactory.newInstance(); SAXParser sp = spf.newSAXParser(); XMLReader xr = sp.getXMLReader(); //Get Torrents XMLTorrentsRSSHandler torrentsHandler = new XMLTorrentsRSSHandler(); xr.setContentHandler(torrentsHandler); InputStream in = url.openStream(); xr.parse(new InputSource(in)); XMLTorrentsRSSParsedDataSet parsedTorrentsDataSet = torrentsHandler.getParsedData(); </code></pre> <p>I keep getting this exception:</p> <pre><code>org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 53: mismatched tag </code></pre> <p>Why the flip does it torment me like this!?</p> <p>EDIT: This method was working fine until today. Perhaps the website changed but where is this flippin' mismatched tag?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload