Skip to content Skip to sidebar Skip to footer

Saxparser: Not Well-formed (invalid Token)

I copied and edited some code, then ran this on my phone from Android Studio: try { File myFile = new File(Storage.CONTENT_CACHE, 'test.xml'); if(!myFil

Solution 1:

Seems you need to use inputSource.setEncoding("windows-1252") . Other libraries tries to detect charset but I couldn't find any robust one.

Solution 2:

Maybe xml doesn't accept any encoding, search for 'xml valid encodings'

Post a Comment for "Saxparser: Not Well-formed (invalid Token)"