Android decoding html in xml file

后端 未结 3 422
离开以前
离开以前 2020-12-22 03:54

In my software im receiving a xml file that is containing some HTML entities like & amp; or whatever. Im successfull decoding the xml but not the HTML entities. The stri

3条回答
  •  醉话见心
    2020-12-22 04:11

    I have two approaches to suggest:

    1. Deactivate validation: factory.setValidating(false);

    2. Add a XHTML DTD tag to your XML stream, immediately after the tag.

提交回复
热议问题