Closed FanJups closed 1 year ago
There is an issue (based on our goal not jsoup issue) when using xmlParser. On the other hand, hmlParser has no issue. We use xml instead of html parser because html parser adds html,head and body tags but we don't want that. We used xml then added a logic to get a similar result we got using htmlParser but without html,head and body tags.
There are 2 branches with examples in order to better understand:
xmlParser: https://github.com/osscameroon/js-generator/tree/basic-illustration-of-self-closing-tag-issue
htmlParser: https://github.com/osscameroon/js-generator/tree/basic-illustration-of-self-closing-tag-issue-htmlparser
https://github.com/jhy/jsoup/issues/1838