Fatal Error :1:1: Content is not allowed in prolog

后端 未结 6 1036
旧时难觅i
旧时难觅i 2021-01-01 09:58

I\'m using Java and i\'m trying to get XML document from some http link. Code I\'m using is:

URL url = new URL(link);

HttpURLConnection connection = (HttpUR         


        
6条回答
  •  心在旅途
    2021-01-01 10:27

    The real solution that I found for this issue was by disabling any XML Format post processors. I have added a post processor called "jp@gc - XML Format Post Processor" and started noticing the error "Fatal Error :1:1: Content is not allowed in prolog"

    By disabling the post processor had stopped throwing those errors.

提交回复
热议问题