* SecurityParser.cs : SecurityElement receives raw XML strings for
values.
svn path=/trunk/mcs/; revision=89136
+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.
// 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)
public void OnChars (string ch)
{
- current.Text = ch;
+ current.Text = SecurityElement.Escape (ch);
}
public void OnEndParsing (SmallXmlParser parser) {}