Class mozile.xpath

Object
   |
   +--mozile.Module
         |
         +--mozile.xpath

class mozile.xpath
extends mozile.Module

Field Summary
<static>  Object getXPath
          
   
Method Summary
<static> Array evaluate(<String> expression, root)
           Evaluates an XPath expression in the context of the document or a node.
<static> Object getComponent(<String> expression)
           Takes a simple XPath expression and returns an object with "name", "localName", and "position" properties for the last node in the path.
<static> Array getComponents(<String> expression)
           Takes an XPath expression, splits it at "/" characters, and returns a cleaned array.
<static> String getNamedPath(<Node> node, <Node> root)
           Returns a simple unique XPath location for the given node.
<static> Node getNode(<String> expression, <Node> root)
           A basic XPath processor.
<static> String getSimplePath(<Node> node, <Node> root)
           Returns a very simple XPath location for the given node using only the child's index.

Field Detail

getXPath

<static> Object getXPath


Method Detail

evaluate

<static> Array evaluate(<String> expression, root)

getComponent

<static> Object getComponent(<String> expression)

getComponents

<static> Array getComponents(<String> expression)

getNamedPath

<static> String getNamedPath(<Node> node, <Node> root)

getNode

<static> Node getNode(<String> expression, <Node> root)

getSimplePath

<static> String getSimplePath(<Node> node, <Node> root)


Documentation generated by JSDoc on Wed Feb 20 13:25:28 2008