public bool Parse(string name, string value, XmlNode node)
{
switch (name)
{
case "OutputBuffering":
{
int ivalue;
if (int.TryParse(value, out ivalue))
outputBuffering = ivalue != 0;
else
outputBuffering = (value == "true");
}
break;
case "OutputHandler":
outputHandler = (value != "") ? new PhpCallback(value) : null;
break;
case "ImplicitFlush":
implicitFlush = value == "true";
break;
case "ContentType":
this.contentType = (value != "") ? value : null;
break;
case "Charset":
this.charSet = (value != "") ? value : null;
break;
default:
return false;
}
return true;
}
}