implementing XmlElement.SetAttributeNode(localName, namespaceURI) and
[mono.git] / mcs / class / System.XML / System.Xml / XmlNode.cs
index 292a860a60f13cfa4481917fe179fd947a131f56..d4d39a77aef518963f4a3e34284010eeb8e3f7b9 100644 (file)
@@ -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;
                        }
@@ -235,7 +236,7 @@ namespace System.Xml
                public abstract XmlNode CloneNode (bool deep);
 
                [MonoTODO]
-               public virtual XPathNavigator CreateNavigator ()
+               public XPathNavigator CreateNavigator ()
                {
                        return new XmlDocumentNavigator(this);
                }