protected override void WriteXml(XmlWriter writer, bool withChildren, SerializationOptions options)
{
const string thisName = "SearchFolder";
const string thisPath = "/Root/SearchFolder";
writer.WriteStartElement("Content");
base.WriteHead(writer, thisName, thisName, thisName, thisPath, true);
if (_query != null)
{
writer.WriteStartElement("Query");
writer.WriteRaw(_query.ToXml());
writer.WriteEndElement();
}
if (withChildren && Children != null)
{
writer.WriteStartElement("Children");
this.WriteXml(Children, writer, options);
writer.WriteEndElement();
}
writer.WriteEndElement();
}