Hi, I have a problem reading an XML file.
I do ~~~ var xmlFile = Ti.Filesystem.getFile(fileFolder, '1.xml'); if(xmlFile.exists()) { Ti.API.info(xmlFile.size); Ti.API.info(xmlFile.read().text); } ~~~
it give me about 5kb of size but return NULL for xmlFile.read().text XML file is ok, I have tested it on XML validators on the net.
Any idea of what could be the problem ?
Regards
1 Answer
Accepted Answer
yes it was a UTF-8 problem, now the XML files are UTF-8 and the problem is solved...
Your Answer
Think you can help? Login to answer this question!