Method Summary |
|
public static org.jdom.Document | createJDOMDocument(org.w3c.dom.Document document) Creates a JDOM Document from a specified
W3C Document . |
public static String | createStringFromJDOMDocument(org.jdom.Document document) Returns the documents XML content as a string. |
public static Element | getBodyFragmentFromJDOMDocument(org.jdom.Document document) Convinience method for HTML fragments. |
public static Element | getBodyFragmentJDOMDocument(org.jdom.Document document) |
public static DOMParser | getHTMLParser() Returns a parser suitable for parsing HTML documents.
The NekoHTML parser is used with some settings to
preserve case of tag names and disable namespace processing. |
public static org.w3c.dom.Document | parse(DOMParser parser, String source) Parses the specified XML with the specified parser.
The main purpose of this method is to use the NekoHTML
parser with custom features and properties. |
public static org.w3c.dom.Document | parseHTML(String source) Parses the specified HTML with the NekoHTML parser. |