private string GetContents(XElement src) { if (src==null) throw new ParseErrorException(); return String.Join("", src.Nodes().Select(child => child.ToString(SaveOptions.DisableFormatting))); }