Say I have a very simple XML with an empty tag \'B\':
foo bar
This has been a long time issue and I finally made it work with a simple solution.
Add if you have a space character. I added a space in my helper class.