Parse Exception: At line 1, column 0: no element found

后端 未结 6 1727
半阙折子戏
半阙折子戏 2021-01-06 00:54

I have a weird issue. I receive the following error that causes a force-close:

org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 0:

6条回答
  •  天命终不由人
    2021-01-06 01:07

    Even I faced the same issue. I was first using the InputStream in Scanner to print the content of it. And then trying to pass it in XML parser.

    The problem was that I was not closing the Scanner object. And using the Inputstream in parser.

    After closing the scanner object, I was able to tackle this issue.

提交回复
热议问题