From: Atsushi Eno Date: Mon, 4 Nov 2002 03:51:55 +0000 (-0000) Subject: *** empty log message *** X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=082d1e4f782f51d10884dcb2d31bb733a95e0f84;hp=66a6d9b017ced189138bfcae54abb32d65d78898;p=mono.git *** empty log message *** svn path=/trunk/mcs/; revision=8807 --- diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog index 213601cf1b1..53fd2e5c5fe 100644 --- a/mcs/class/System.XML/System.Xml/ChangeLog +++ b/mcs/class/System.XML/System.Xml/ChangeLog @@ -1,3 +1,7 @@ +2002-11-04 Atsushi Enomoto + + XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement' + 2002-11-03 Atsushi Enomoto * XmlAttributeCollection.cs : checks owner element. diff --git a/mcs/class/System.XML/System.Xml/XmlAttribute.cs b/mcs/class/System.XML/System.Xml/XmlAttribute.cs index 1c1b631219b..398a9195cd3 100644 --- a/mcs/class/System.XML/System.Xml/XmlAttribute.cs +++ b/mcs/class/System.XML/System.Xml/XmlAttribute.cs @@ -22,6 +22,7 @@ namespace System.Xml private string namespaceURI; private string prefix; internal bool isDefault; + private XmlElement ownerElement; #endregion @@ -123,7 +124,7 @@ namespace System.Xml public virtual XmlElement OwnerElement { get { - return base.ParentNode as XmlElement; + return ownerElement; } } @@ -190,6 +191,11 @@ namespace System.Xml return node; } + // Parent of XmlAttribute must be null + internal void SetOwnerElement(XmlElement el) { + ownerElement = el; + } + public override void WriteContentTo (XmlWriter w) { w.WriteString (Value);