public static Scriptable EnterDotQuery(object value, Scriptable scope) { if (!(value is XMLObject)) { throw NotXmlError(value); } XMLObject @object = (XMLObject)value; return @object.EnterDotQuery(scope); }