Android: XML tags lost in Android 2.1?

zubo

New Member
I noticed that reading a request containing an XML file in Android 2.1 is not working correctly for my app.In my case I am using \[code\]dom4j\[/code\] and \[code\]SAXReader()\[/code\] to create a document that contains the XML file like this:\[code\]SAXReader reader = new SAXReader(); Document document = reader.read(httpRequestUrl); \[/code\]In Android 3.0 and above the read XML file has tags. \[code\]<tag>Hello World</tag> \[/code\]In Android 2.1/2.2 the read XML file has no tags. \[code\]Hello World\[/code\]Opening the XML in the default browser shows the same thing, in Android 3.0+ the XML contains tags, in Android 2.1 it's just plain text without tags. What causes this? I guess it has something to do with the webkit version that the older versions of Android are using? What can I do to add the tags to the returned XML file in Android 2.1?
 
Top