I am using JTidy and xpath in parsing HTML, but for the time being parsing text causes me a little trouble because it may include b tag inside, so I don't want to loop over it's child nodes but simply remove 'b' tags after it loads html.
How can I delete tags if from DOM document.
Document doc = tidy.parseDOM(url.openStream(), System.out);
for example pseudo code for it - doc.removeTag('<b>');
Is it possible ?