Skip to content

Commit

Permalink
2004-10-29 Atsushi Enomoto <atsushi@ximian.com>
Browse files Browse the repository at this point in the history
	* XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
	* XmlNode.cs : dustclean.

svn path=/trunk/mcs/; revision=35415
  • Loading branch information
atsushieno committed Oct 29, 2004
1 parent 49f8de6 commit 0018d2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 5 additions & 0 deletions mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,3 +1,8 @@
2004-10-29 Atsushi Enomoto <atsushi@ximian.com>

* XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
* XmlNode.cs : dustclean.

2004-10-28 Atsushi Enomoto <atsushi@ximian.com>

* XmlDocument.cs : use XPathEditableDocument again.
Expand Down
10 changes: 5 additions & 5 deletions mcs/class/System.XML/System.Xml/XmlDocumentNavigator.cs
Expand Up @@ -646,12 +646,12 @@ public override void MoveToRoot ()
NsNode = null;
}

internal XmlNode Node { get { return NsNode != null ? NsNode : node; } }
private XmlNode Node { get { return NsNode != null ? NsNode : node; } }

XmlNode IHasXmlNode.GetNode ()
{
return node;
}
XmlNode IHasXmlNode.GetNode ()
{
return Node;
}

#endregion
}
Expand Down
3 changes: 0 additions & 3 deletions mcs/class/System.XML/System.Xml/XmlNode.cs
Expand Up @@ -749,10 +749,7 @@ public XmlNode SelectSingleNode (string xpath, XmlNamespaceManager nsmgr)
XPathNodeIterator iter = nav.Select (expr);
if (!iter.MoveNext ())
return null;
if (iter.Current is IHasXmlNode)
return ((IHasXmlNode) iter.Current).GetNode ();
else
throw new Exception ("It should be IHasXmlNode: " + iter.Current.GetType ());
}

internal static void SetReadOnly (XmlNode n)
Expand Down

0 comments on commit 0018d2c

Please sign in to comment.