public static bool IsXml(string data, out bool isFragment) { bool isHtml; return IsXml(data, out isFragment, out isHtml) && !isFragment && !isHtml; }