com.googlecode.jinahya.xml
Class DOMElementLocator
java.lang.Object
com.googlecode.jinahya.xml.ElementLocator
com.googlecode.jinahya.xml.DOMElementLocator
public class DOMElementLocator
- extends ElementLocator
A W3C DOM implementation.
- Author:
- Jin Kwon
| Methods inherited from class com.googlecode.jinahya.xml.ElementLocator |
addChild, addChild, getAttribute, getAttribute, getChildCount, getChildCount, getLocalName, getNamespaceURI, getText, locateChild, locateChild, locateParent, locateRoot, removeCurrent, setAttribute, setAttribute, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMElementLocator
public DOMElementLocator(ELElement root)
- Creates a new instance.
- Parameters:
root - root element
parse
public static ElementLocator parse(Document document)
- Parses given
document and creates a new instance.
- Parameters:
document - document
- Returns:
- new instance of DOMElementLocator.
print
public static void print(ElementLocator locator,
Document document)
- Prints given
locator to specified document.
- Parameters:
locator - locatordocument - document
Copyright © 2010-2011. All Rights Reserved.