im trying to build an app to read this feed: http://loc.grupolusofona.pt/index.php/?format=feed
Its working just fine, except for the fact that when it reaches the
The description tag contains a CDATA element. Therefore it's not a text node so your check for
if( child.getNodeType() == Node.TEXT_NODE )
will be false for those nodes. The child is most likely a CDATA_SECTION_NODE. It's also possible that the node has multiple children (text nodes if there is text outside the CDATA including whitespace) and you'll need to handle selecting the right child in that case.