SyntaxFix
Write A Post
Hire A Developer
Questions
You can try doing:
String myResource = IOUtils.toString(this.getClass().getResourceAsStream("yourfile.xml")).replace("\n","");