| java.lang.Object org.pentaho.designstudio.util.XmlHelper
XmlHelper | public class XmlHelper (Code) | | author: mbatchel/jdixon author: TODO To change the template for this generated type comment go to author: Window - Preferences - Java - Code Style - Code Templates |
appendNL | public static void appendNL(Element top, String elementName)(Code) | | Appends a newline after each element with the passed in name starting with top elememt.
Parameters: top - The parent element within the tree to start looking Parameters: elementName - The name of the element to append a newline to |
getDocFromFile | public static Document getDocFromFile(File f)(Code) | | |
getDocFromString | public static Document getDocFromString(String str)(Code) | | |
getNodeText | public static long getNodeText(String path, Node rootNode, long defaultValue)(Code) | | |
prettyPrint | public static Document prettyPrint(Document document)(Code) | | |
sortNodes | public static void sortNodes(Element top, String sequenceList)(Code) | | Sorts Element nodes in the order of the element names specified in sequenceList. Any nodes not
in sequenceList will remain in their original order. WARNING: Whitespace and text get pushed to the end
of the sorted items. Pretty print should probably be called after sorting.
Parameters: top - The top level element to do the sort within Parameters: sequenceList - List of element names and the order they should appear in |
|
|