Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlNode.cs')
-rw-r--r--mcs/class/System.XML/System.Xml/XmlNode.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlNode.cs b/mcs/class/System.XML/System.Xml/XmlNode.cs
index 4df1845b3a5..d4d39a77aef 100644
--- a/mcs/class/System.XML/System.Xml/XmlNode.cs
+++ b/mcs/class/System.XML/System.Xml/XmlNode.cs
@@ -77,12 +77,13 @@ namespace System.Xml
set { throw new NotImplementedException (); }
}
- private void AppendChildValues(XmlNode parent, StringBuilder builder)
+ private void AppendChildValues (XmlNode parent, StringBuilder builder)
{
XmlNode node = parent.FirstChild;
while (node != null) {
- builder.Append (node.Value);
+ if (node.NodeType == XmlNodeType.Text)
+ builder.Append (node.Value);
AppendChildValues (node, builder);
node = node.NextSibling;
}