Possible to parse a HTML document and build a DOM tree(java)

后端 未结 5 686
孤街浪徒
孤街浪徒 2021-01-07 07:54

Is it possible and what tools could be used to parse an html document as a string or from a file and then to construct a DOM tree so that a developer can walk the tree throu

5条回答
  •  时光说笑
    2021-01-07 08:02

    HTML Parser seems to support conversion from HTML to XML. Then you can build a DOM tree using the usual Java toolchain.

提交回复
热议问题