WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

XPathExpression

This object is available to unprivileged JavaScript. It implements the following interfaces:

Methods

nsISupports evaluate ( Node contextNode , short type , nsISupports result ) nsISupports evaluateWithContext ( Node contextNode , int contextPosition , int contextSize , short type , nsISupports result )

nsISupports evaluate ( Node contextNode , short type , nsISupports result )

Arguments:
contextNode
type
result

nsISupports evaluateWithContext ( Node contextNode , int contextPosition , int contextSize , short type , nsISupports result )

Evaluate the expression with the given context. Similar to nsIDOMXPathExpression::evaluate(), except that this takes the context position and size too.

Arguments:
contextNode: The context node
contextPosition: The context position
contextSize: The context size
type: The needed result type
result: The result

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com