projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2002-10-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git]
/
mcs
/
class
/
System.XML
/
System.Xml
/
XmlAttribute.cs
diff --git
a/mcs/class/System.XML/System.Xml/XmlAttribute.cs
b/mcs/class/System.XML/System.Xml/XmlAttribute.cs
index 70419b6c593c70b7864440412916865ba1eb7f26..56e8658f4d5f13187d0c6929b9e87d3a117254d9 100644
(file)
--- 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;
+using System.Text;
namespace System.Xml
{
namespace System.Xml
{
@@
-46,17
+47,30
@@
namespace System.Xml
}
}
}
}
- [MonoTODO]
+ [MonoTODO
("Setter")
]
public override string InnerText {
get {
public override string InnerText {
get {
- throw new NotImplementedException ();
- }
+ StringBuilder builder = new StringBuilder ();
+ AppendChildValues (this, builder);
+ return builder.ToString ();
+ }
set {
throw new NotImplementedException ();
}
}
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 {
[MonoTODO ("Setter.")]
public override string InnerXml {
get {