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 and Description |
---|---|
protected String |
baseUri |
protected org.jsoup.parser.Token |
currentToken |
protected Document |
doc |
protected ParseErrorList |
errors |
protected ParseSettings |
settings |
protected ArrayList<Element> |
stack |
Constructor and Description |
---|
XmlTreeBuilder() |
Modifier and Type | Method and Description |
---|---|
protected Element |
currentElement() |
protected void |
initialiseParse(String 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(String 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 © 2017. All rights reserved.