| java.lang.Object net.wastl.webmail.xml.XMLCommon
XMLCommon | final public class XMLCommon (Code) | | This class contains some static methods that are used commonly in other WebMail parts.
author: Sebastian Schaffert |
Method Summary | |
public static Node | cloneNode(Document d, Node n) | public static synchronized void | debugXML(Document d) | public static void | genericRemoveAll(Element parent, String tagname) | public static Element | getElementByAttribute(Element root, String tagname, String attribute, String att_value) | public static String | getElementTextValue(Element e) | public static String | getTagValue(Element e, String tagname) | public static Node | importNode(Document d, Node n, boolean deep) This is a helper function to deal with problems that occur when importing Nodes from
JTidy Documents to Xerces Documents. | public static void | setElementTextValue(Element e, String text) | public static void | setElementTextValue(Element e, String text, boolean cdata) | public static void | setTagValue(Element e, String tagname, String text) Set the value of the first tag below e with name tagname to text. | public static void | setTagValue(Element e, String tagname, String text, boolean cdata) | public static void | setTagValue(Element e, String tagname, String text, boolean unique, String errormsg) | public static void | setTagValue(Element e, String tagname, String text, boolean unique, String errormsg, boolean cdata) | public static void | writeXML(Document d, OutputStream os, String sysID) | protected static void | writeXMLwalkTree(Node node, int indent, PrintWriter out) |
importNode | public static Node importNode(Document d, Node n, boolean deep)(Code) | | This is a helper function to deal with problems that occur when importing Nodes from
JTidy Documents to Xerces Documents.
|
setElementTextValue | public static void setElementTextValue(Element e, String text, boolean cdata)(Code) | | |
setTagValue | public static void setTagValue(Element e, String tagname, String text)(Code) | | Set the value of the first tag below e with name tagname to text.
|
|
|