XML parser parsing --Jsoup

A, Jsoup parser Quick Start Case

 

 

 Docement objects, text objects, the tree structure contains various Dom

1, the parser is introduced Jsoup jar package lib in the folder, write java code

 

 among them,

 

 Two, Jsoup objects

1, Jsoup parser xml and html of related objects

 

 Which, by statistical resource locator (URL) parsing HTML, suitable for reptiles, such as comparison shopping website;

 

2, first obtained by xml and html files

 

 

3, the second is not commonly used, the contents of the html and xml static pages assigned to all the java code, will automatically add the escape character \ 

 

4, a third way to access remote resources through the resource consent locator

 

Three, Document Object

1、

Guess you like

Origin www.cnblogs.com/wmqiang/p/11567779.html