Sunday, 15 May 2011

How to trim whitespace from a data-bound XML element in WPF using XPath? -


How can the white space be removed at the beginning and end of the content of an XML element, when WPAF is bound to the element in XPath ?

Believing that you believe something like this:

  Lt; X: XData & gt; & Lt; Foo & gt; Bar & lt; / Foo & gt; & Lt; / X: Data & gt;  

Then there is no white spot to trim. Immediately after the opening tag, the whitespace, and shortly after the closing tag, is negligible, and anyways it will be ignored.


No comments:

Post a Comment