I'm using an Asp.Net XmlReader to fetch the xml and read it into a DataSet using the DataSet.ReadXml() method, after which I render the output using a Repeater control databound to the DataSet.Tables("Result").DefaultView.
The problem is that the DataSet interprets (correctly, one might argue) the <b>...</b> as a separate node in the xml structure.
> The problem is that the DataSet interprets (correctly,
> one might argue) the <b>...</b> as a separate node in
> the xml structure.
Indeed, the <b> tags are being represented as a separate, sub-nodes in the XML structure, even though we consider the text "part of" the parent <ResultTitle>.
This is a common convention (it's how XHTML works, after all) and because of this most XML APIs offer a way to get the content of an element and all of its children. I'm not familiar with Microsoft's xmlReader, though.
Regardless of whether it's possible with an xmlReader or not, I can certainly understand someone might want the XML with "flat" text elements, i.e. no query highlighting. We'll look at including an search option to disable Query Highlighting.