I have an xml file(from federal government's data.gov) which I'm trying to read with scala's xml handlers.
val loadnode = scala.xml.XML.loadFile(filename)
Apparently, there is an invalid xml character. Is there an option to just ignore invalid characters? or is my only option to clean it up first?
org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x12) was found in the element content of the document.
Ruby's nokogiri was able to parse it with the invalid character.