| java.lang.Object de.schlund.pfixxml.util.XMLUtils
XMLUtils | public class XMLUtils (Code) | | This class contains some utility methods for working with w3c DOMs:
- creation of a XPath expression denoting the absolute node position
- assertEquals JUnit test implementation for comparison of DOM nodes
author: mleidig |
Method Summary | |
public static void | assertEquals(Node expected, Node actual) Compare expected and actual node in-depth and throw AssertionError if a
difference is found. | public static String | getXPath(Node node) Create a XPath expression denoting the node's absolute position. | public static void | stripWhitespace(Node node) |
assertEquals | public static void assertEquals(Node expected, Node actual) throws AssertionError(Code) | | Compare expected and actual node in-depth and throw AssertionError if a
difference is found.
|
getXPath | public static String getXPath(Node node)(Code) | | Create a XPath expression denoting the node's absolute position.
|
stripWhitespace | public static void stripWhitespace(Node node)(Code) | | Strips whitespace (empty text nodes) from DOM
|
|
|