Package org.jsoup.parser
Class XmlTreeBuilder
java.lang.Object
org.jsoup.parser.XmlTreeBuilder
Use the
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());
- Author:
- Jonathan Hedley
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
initialiseParse
(Reader input, String baseUri, Parser parser) protected void
insertNode
(Node node) Deprecated.unused and will be removed.protected void
insertNode
(Node node, org.jsoup.parser.Token token) Deprecated.unused and will be removed.protected void
popStackToClose
(org.jsoup.parser.Token.EndTag endTag) If the stack contains an element with this tag's name, pop up the stack to remove the first occurrence.protected boolean
process
(org.jsoup.parser.Token token)
-
Field Details
-
parser
-
-
Constructor Details
-
XmlTreeBuilder
public XmlTreeBuilder()
-
-
Method Details
-
initialiseParse
-
defaultNamespace
-
process
-
insertNode
Deprecated.unused and will be removed. -
insertNode
Deprecated.unused and will be removed. -
popStackToClose
If the stack contains an element with this tag's name, pop up the stack to remove the first occurrence. If not found, skips.- Parameters:
endTag
- tag to close
-