org.xml.sax.SAXParseException: The reference to entity “T” must end with the ';' delimiter

前端 未结 9 1699
北海茫月
北海茫月 2020-12-29 07:35

I am trying to parse an XML file whcih contains some special characters like \"&\" using DOM parser. I am getting the saxparse exception \"the reference to entity must e

9条回答
  •  半阙折子戏
    2020-12-29 07:59

    It will work if you use below command before publishing.

    please put your xml file name in below command

    sed -i "s/&/;/g" *.xml
    

提交回复
热议问题