public XStreamingElement AsXml()
{
return new XStreamingElement(
"W" + this.RuntimeId,
new XAttribute("class", this.AutomationElement.Current.ClassName),
new XAttribute("id", this.AutomationElement.Current.AutomationId),
new XAttribute("name", this.AutomationElement.Current.Name),
new XAttribute("rect", this.AutomationElement.Current.BoundingRectangle),
from x in this.IterFind(TreeScope.Children, null) select x.AsXml());
}