diff options
-rw-r--r-- | mcs/class/System.XML/System.Xml/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlAttribute.cs | 8 |
2 files changed, 11 insertions, 1 deletions
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 <gigna@kit.hi-ho.ne.jp> + + XmlAttribute.cs: fixed missing internal 'OwnerElement''SetOwnerElement' + 2002-11-03 Atsushi Enomoto <gigna@kit.hi-ho.ne.jp> * 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); |