michael@0: /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * Corresponds to http://www.w3.org/TR/2002/WD-DOM-Level-3-XPath-20020208 michael@0: */ michael@0: michael@0: #include "domstubs.idl" michael@0: michael@0: interface nsIDOMXPathNSResolver; michael@0: interface nsIDOMXPathResult; michael@0: interface nsIDOMXPathExpression; michael@0: interface XPathException; michael@0: michael@0: [scriptable, uuid(75506f8a-b504-11d5-a7f2-ca108ab8b6fc)] michael@0: interface nsIDOMXPathEvaluator : nsISupports michael@0: { michael@0: nsIDOMXPathExpression createExpression(in DOMString expression, michael@0: in nsIDOMXPathNSResolver resolver) michael@0: raises(XPathException, michael@0: DOMException); michael@0: nsIDOMXPathNSResolver createNSResolver(in nsIDOMNode nodeResolver); michael@0: nsISupports evaluate(in DOMString expression, michael@0: in nsIDOMNode contextNode, michael@0: in nsIDOMXPathNSResolver resolver, michael@0: in unsigned short type, michael@0: in nsISupports result) michael@0: raises(XPathException, michael@0: DOMException); michael@0: };