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:
authorMatt Hunter <matthunt@mono-cvs.ximian.com>2002-09-21 08:20:31 +0400
committerMatt Hunter <matthunt@mono-cvs.ximian.com>2002-09-21 08:20:31 +0400
commit07aae53facdf9b4f8fe011bf0add6b7bda4560fe (patch)
treee932e888a979a79d4592d17193958e0989a013d9 /mcs/class/System.XML
parent73692dfb4534ca072841920a0a2775256d347993 (diff)
implementing XmlElement.SetAttributeNode(localName, namespaceURI) and
implementing XmlAttributeCollection.Append(XmlAttribute) svn path=/trunk/mcs/; revision=7680
Diffstat (limited to 'mcs/class/System.XML')
-rw-r--r--mcs/class/System.XML/System.Xml/ChangeLog5
-rw-r--r--mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs7
-rw-r--r--mcs/class/System.XML/System.Xml/XmlElement.cs6
3 files changed, 13 insertions, 5 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog
index 952c0ff1899..12d7685c601 100644
--- a/mcs/class/System.XML/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/System.Xml/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-19 Matt Hunter <mahunter@tconl.com>
+
+ * XmlElement.cs: Implementing SetAttributeNode(localName,namespaceURI)
+ * XmlAttributeCollection.cs: Implemented Append (XmlAttribute)
+
2002-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* XmlConvert.cs: finished implementation.
diff --git a/mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs b/mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs
index 3c3afbf5385..5fe797252c8 100644
--- a/mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs
+++ b/mcs/class/System.XML/System.Xml/XmlAttributeCollection.cs
@@ -54,11 +54,12 @@ namespace System.Xml
}
}
- [MonoTODO]
+
public virtual XmlAttribute Append (XmlAttribute node)
{
- throw new NotImplementedException ();
- }
+ XmlNode xmlNode = this.SetNamedItem (node);
+ return node;
+ }
[MonoTODO]
public void CopyTo (XmlAttribute [] array, int index)
diff --git a/mcs/class/System.XML/System.Xml/XmlElement.cs b/mcs/class/System.XML/System.Xml/XmlElement.cs
index da26a8b0ca9..e87edc9e936 100644
--- a/mcs/class/System.XML/System.Xml/XmlElement.cs
+++ b/mcs/class/System.XML/System.Xml/XmlElement.cs
@@ -283,10 +283,12 @@ namespace System.Xml
return oldAttr != null ? oldAttr as XmlAttribute : null;
}
- [MonoTODO]
+
public virtual XmlAttribute SetAttributeNode (string localName, string namespaceURI)
{
- throw new NotImplementedException ();
+ XmlDocument xmlDoc = this.OwnerDocument;
+ XmlAttribute xmlAttribute = new XmlAttribute (String.Empty, localName, namespaceURI, xmlDoc);
+ return this.attributes.Append (xmlAttribute);
}
public override void WriteContentTo (XmlWriter w)