Parser is not working as expected when there are empty spaces in the closing tags.
For example, the below code is returning empty nodes because of "</book >".
var xml = "<book></book ><title>Harry Potter</title>"
var doc = new Dom().parseFromString(xml)
var nodes = xpath.select("title/text()", doc)
If I keep </book > as </book> it's working as expected. Please check this.
Parser is not working as expected when there are empty spaces in the closing tags. For example, the below code is returning empty nodes because of
"</book >"
.If I keep
</book > as </book>
it's working as expected. Please check this.