Given the string "<table><tr><td>Hello World!</td></tr></table>"
, what is the (easiest) way to get a DOM Element representing it?
相关问题
- Views base64 encoded blob in HTML with PHP
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
I found this somewhere (don't remember where):
If you have a string which contains HTML you can use Jsoup library like this to get HTML elements:
Good luck!
you could use HTML Parser, which a Java library used to parse HTML in either a linear or nested fashion. It is an open source tool and can be found on SourceForge
You could use Swing:
Here's a way:
I've used Jericho HTML Parser it's OSS, detects(forgives) badly formatted tags and is lightweight