简体   繁体   中英

Jsoup XML parse from File

I need to transform an XML file to parse XML in Jsoup. I have an XML file that the way it is now, is to parse HTML and not XML. Anyone know a way? In HTML, the jsoup works very well, I have no idea how to include a file and use XML Parse this file.

Anyone know how to do, because the site Jsoup not think anything related to XML or XML file conversion. Thank you.

您应该使用适当的XML解析器,例如JDom而不是Jsoup,正如您所说的,Jsoup是HTML解析器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM