Extract text from html: looking for a good sax-like parser or advices with a dom parser
<p>I have an html document formatted this way:</p>

<pre><code>&lt;p&gt;
 some plain text &lt;em&gt;some emphatized text&lt;/em&gt;, &lt;strong&gt; some strong text&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
 just some plain text
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;strong text &lt;/p&gt; followed by plain, &lt;a&gt;with a link at the end!&lt;/a&gt;
&lt;/p&gt;
</code></pre>

<p>I'd like to extract the text. With dom like parsers I could extract each paragraph <p>, but the problem is inside: I'd have to extract text from inner tags too and have a resulting string with the same order, in the example above, first paragraph, I want to extract:</p>

<pre><code>some plain text some emphatized text, some strong text
</code></pre>

<p>and for this purpose I guess a sax like parser would be better than a dom, given that I can't know inner tags number o sequence: a paragraph can have zero or more inner tags, of different type.</p>
