public class XmlTreeBuilder extends Object
XmlTreeBuilder
when you want to parse XML without any of the HTML DOM rules being applied to the
document.
Usage example: Document xmlDoc = Jsoup.parse(html, baseUrl, Parser.xmlParser());
Modifier and Type | Field | Description |
---|---|---|
protected String |
baseUri |
|
protected org.jsoup.parser.Token |
currentToken |
|
protected Document |
doc |
|
protected ParseErrorList |
errors |
|
protected ParseSettings |
settings |
|
protected ArrayList<Element> |
stack |
Constructor | Description |
---|---|
XmlTreeBuilder() |
Modifier and Type | Method | Description |
---|---|---|
protected Element |
currentElement() |
|
protected void |
initialiseParse(Reader input,
String baseUri,
ParseErrorList errors,
ParseSettings settings) |
|
protected boolean |
process(org.jsoup.parser.Token token) |
|
protected boolean |
processEndTag(String name) |
|
protected boolean |
processStartTag(String name) |
|
boolean |
processStartTag(String name,
Attributes attrs) |
|
protected void |
runParser() |
protected Document doc
protected String baseUri
protected org.jsoup.parser.Token currentToken
protected ParseErrorList errors
protected ParseSettings settings
protected void initialiseParse(Reader input, String baseUri, ParseErrorList errors, ParseSettings settings)
protected boolean process(org.jsoup.parser.Token token)
protected void runParser()
protected boolean processStartTag(String name)
public boolean processStartTag(String name, Attributes attrs)
protected boolean processEndTag(String name)
protected Element currentElement()
Copyright © 2009–2018 Jonathan Hedley. All rights reserved.