<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>