public final class Html extends Object
| Constructor and Description |
|---|
Html(Document document)
Creates an empty HTML document with an empty body.
|
Html(String xhtmlContent)
Creates an HTML document from a string source (body).
|
| Modifier and Type | Method and Description |
|---|---|
Element |
getBody()
Gets the body of this XHTML document.
|
String |
getContent()
Gets XHTML content of the body, i.e. the content between the
<body></body> element. |
public Html(Document document)
document - The document.getBody()public Html(String xhtmlContent) throws SAXException
xhtmlContent - The body element as string, e.g. <p>Hi</p>.SAXException - If the input string could not be parsed.getContent()Copyright © 2014 XMPP.rocks. All rights reserved.