I need to read an xml file that is encoded in ISO-8859-1.
I'm using:
Document document = reader.read(new File(sourceFile));
document.setXMLEncoding("ISO-8859-1");
I'm getting a "cannot find symbol"
error for setXMLEncoding
. This seems like it should be a simple thing, but I can't figure out what I'm doing wrong.