devxlogo

January 3, 2019

The XML Encoding Trap

String xml = fileUtils.readTextFile(“XMLfile.xml”); It’s not a good idea to read an XML file and store it in a String because it wastes memory. The XML specifies its encoding in