fi.hut.tml.xsmiles.mlfc.general
Class SimpleXPath

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.general.SimpleXPath

public class SimpleXPath
extends java.lang.Object

This class implements a really simple XPath API It is used instead of Xalan's XPathAPI, because Xalan doesn't handle default namespaces correctly This implementation just doesn't care about default namespaces...


Constructor Summary
SimpleXPath()
           
 
Method Summary
static org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode, java.lang.String str)
          Use an XPath string to select a single node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleXPath

public SimpleXPath()
Method Detail

selectSingleNode

public static org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
                                                java.lang.String str)
                                         throws org.xml.sax.SAXException
Use an XPath string to select a single node. Usage 'doc/para/text' goes to first element and expects to find there - Searches only elements, - '*' means the first child node, - searches only the first branch - @attr can be the last token, meaning an attribute

Throws:
org.xml.sax.SAXException


X-Smiles 1.2