diff options
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlAttribute.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlAttribute.cs | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlAttribute.cs b/mcs/class/System.XML/System.Xml/XmlAttribute.cs index 70419b6c593..56e8658f4d5 100644 --- a/mcs/class/System.XML/System.Xml/XmlAttribute.cs +++ b/mcs/class/System.XML/System.Xml/XmlAttribute.cs @@ -8,6 +8,7 @@ // using System; +using System.Text; namespace System.Xml { @@ -46,17 +47,30 @@ namespace System.Xml } } - [MonoTODO] + [MonoTODO ("Setter")] public override string InnerText { get { - throw new NotImplementedException (); - } + StringBuilder builder = new StringBuilder (); + AppendChildValues (this, builder); + return builder.ToString (); + } set { throw new NotImplementedException (); } } + private void AppendChildValues (XmlNode parent, StringBuilder builder) + { + XmlNode node = parent.FirstChild; + + while (node != null) { + builder.Append (node.Value); + AppendChildValues (node, builder); + node = node.NextSibling; + } + } + [MonoTODO ("Setter.")] public override string InnerXml { get { |