com.japisoft.xmlpad.toolkit
Class XMLToolkit

java.lang.Object
  extended bycom.japisoft.xmlpad.toolkit.XMLToolkit

public final class XMLToolkit
extends java.lang.Object

General toolkit for XML inside the XMLContainer. Note that the XPath evaluation required JXP : http://www.japisoft.com/jxpath

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Constructor Summary
XMLToolkit()
           
 
Method Summary
static XPathHandler highlightXPathNodes(XMLContainer container, java.lang.String xpathExpression, boolean relative)
          Highlight the nodes from the editor from this xpathExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLToolkit

public XMLToolkit()
Method Detail

highlightXPathNodes

public static XPathHandler highlightXPathNodes(XMLContainer container,
                                               java.lang.String xpathExpression,
                                               boolean relative)
                                        throws com.japisoft.xpath.XPathException
Highlight the nodes from the editor from this xpathExpression

Parameters:
container - The main editor
xpathExpression - The XPath query
relative - if true this is relative to the current node else to the root node
Returns:
an XPathHandler for selecting each result node
Throws:
com.japisoft.xpath.XPathException - Throw an exception is the query cannot be computed


Copyright © 2006 JAPISoft. All Rights Reserved.