Some of the applications that consume a XmlReader benefit from the
additional
information provided by the classification of parsed character data.
Depending
on the context of the XmlReader, parsed character data can surface as
a Text node, a SignificantWhitespace node or simply a Whitespace node. For
more
details see
http://msdn2.microsoft.com/en-us/lib...lnodetype.aspx
If your application doesn't care about this level of granularity then you
can just
treat the combination of Text + SignificationWhitespace + Whitespace as one
case.
Ion
"David Thielen" <th*****@nospam.nospam> wrote in message
news:83**********************************@microsof t.com...
Hi;
I have a node where it is "<w:t> </w:t>" and what I get from XmlTextReader
is Element, SignificantWhitespace, EndElement instead of Element, Text,
EndElement.
Question 1 is why? The text of that node is a space.
Question 2 is how do I handle this. Do I watch for a SignificantWhitespace
inside an Element/EndElement? Or will that get me other things too?
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com