2005-11-07 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Wed, 7 Nov 2007 18:09:05 +0000 (18:09 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Wed, 7 Nov 2007 18:09:05 +0000 (18:09 -0000)
* SecurityParser.cs : SecurityElement receives raw XML strings for
  values.

svn path=/trunk/mcs/; revision=89136

mcs/class/corlib/Mono.Xml/ChangeLog
mcs/class/corlib/Mono.Xml/SecurityParser.cs

index 2fbc0ef534957e3e5a29daff5517c2c1ea4824f5..2e76060b51b2e02f680487c446ed21efe02e69b4 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * SecurityParser.cs : SecurityElement receives raw XML strings for
+         values.
+
 2005-06-15  Atsushi Enomoto  <atsushi@ximian.com>
 
        * SmallXmlParser.cs, SecurityParser.cs : they can be CLSCompliant now.
index 2e8b67595143a446bf89b867d64370bce93a81f6..49919b9779d1c53fcba30ea571a8cad403cb5bfe 100644 (file)
@@ -91,7 +91,7 @@ namespace Mono.Xml {
                        // attributes
                        int n = attrs.Length;
                        for (int i=0; i < n; i++)
-                               current.AddAttribute (attrs.GetName (i), attrs.GetValue (i));
+                               current.AddAttribute (attrs.GetName (i), SecurityElement.Escape (attrs.GetValue (i)));
                }
 
                public void OnEndElement (string name) 
@@ -101,7 +101,7 @@ namespace Mono.Xml {
 
                public void OnChars (string ch) 
                {
-                       current.Text = ch;
+                       current.Text = SecurityElement.Escape (ch);
                }
 
                public void OnEndParsing (SmallXmlParser parser) {}