<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 10/10/2012 01:22 PM, Alexei Golovko wrote:
<blockquote cite="mid:162981349889763@web17g.yandex.ru" type="cite">
  <div>What is the best way to parse xml on the client side? More
precisely, I need to process not only full xml data, but also the
fragments like <em>"bla-bla</em>
baz-baz-<strong>baz</strong>"</em> with bounds in the text
nodes (that is not inside tag as <em>"end-of-tag-name> text"</em>).</div>
  <div>š</div>
  <div>I have some (quick and dirty) parsec-like combinators, but they
are buggy and too slow.</div>
</blockquote>
<br>
So you want fragments that are not legal XML on their own?š Well, which
type do you want to target with your translation?<br>
<br>
Two bits of related library code:<br>
- A basic & configurable HTML parser (only does legal fragments,
though): <a class="moz-txt-link-freetext" href="http://hg.impredicative.com/meta/file/7530b2b54353/html.urs">http://hg.impredicative.com/meta/file/7530b2b54353/html.urs</a><br>
- The XML feed processing library: <a class="moz-txt-link-freetext" href="http://hg.impredicative.com/feed">http://hg.impredicative.com/feed</a><br>
<br>
</body>
</html>