Hi I have a problem reading escape characters inside an xml using XMLStreamReader.
for instance I have this element :
foo&bar
To force XMLStreamReader to return a single string, you have to set the javax.xml.stream.isCoalescing property as indicated by the XMLStreamReader#next() documentation:
XMLInputFactory factory = XMLInputFactory.newInstance();
factory.setProperty("javax.xml.stream.isCoalescing", true); // decode entities into one string
XMLStreamReader xmlStreamReader = factory.createXMLStreamReader(stringReader);