public override string Value {
get { return Data; }
- [MonoTODO]
set {
if (IsValidWhitespaceChar (value) == false)
throw new ArgumentException ("Invalid whitespace characters.");
+ Data = value;
}
}
public override void WriteTo (XmlWriter w)
{
- w.WriteWhitespace (Data);
+ if(OwnerDocument.PreserveWhitespace)
+ w.WriteWhitespace (Data);
}
private bool IsValidWhitespaceChar (string text)