Add [xdoc] for the System.Xml.Linq.XDocument type
System.Xml.Linq.XDocument
public SwitchParameter XDocument { get; set; }