我在xml中有以下值,如下所示
<entry>
<key>
<value>FUTURESproduct</value>
</key>
<value>ROLFE & NOLAN</value>
</entry>
现在我正在读取java中的这个键值,如下所示
if (incomingProduct!= null && incomingProduct.equalsIgnoreCase("FUTURES") ) {
brokerInvoice.setSourceSystem((String)configuration.getConfiguration().get("FUTURESproduct"));
现在在java中读取此键时,我得到以下异常
nested exception is org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
人们请说明如何逃避&amp;特殊字符