I'm trying to parse an XML feed using DOM. When a node looks like this:
<title>'Star Wars' May the force live</title>
the returned XML is only ' and then the parser continues on to the next node.
Here's how I'm parsing it:
NodeList list = node.getChildNodes();
for (int j=0; j<list.getLength(); j++) {
Node innerItem = list.item(j);
String name = innerItem.getNodeName();
if (name.equalsIgnoreCase("title")) {
vo.setTitle(innerItem.getFirstChild().getNodeValue());
}
}
How can I fix this? The code parses fine in Android 4, but fails in Android 2.3.3