英文:
Issue with Perl Scripts / XML
问题
I'm fairly new at Perl / XML and I got assigned the task to migrate from one server to another some of the Perl functionality that we use in our application. I was able to migrate part of it (creating an Excel file), but I can't get the part to actually parse an Excel file done...
I keep getting this error no matter what modules I installed in my Perl/site/lib folder:
Software error: not well-formed (invalid token) at line 1, column 3, byte 3 at C:/Strawberry/perl/site/lib/XML/Parser.pm line 187. at C:\inetpub\wwwroot\cgi-bin\carestreamhealth\importParts_test2test.pl line 255.
I'm at a loss as to why this is not working. We have a current instance with the same scripts but running a different Perl (Active State), and it does work. The problem is that we need to migrate to a Windows Server 2019, and we are not allowed to install Active State. We need to use Strawberry Perl 5.32.1.
Any help will be appreciated.
英文:
I'm fairly new at Perl / XML and i got assign the task to migrate from one server to another some of the perl functionality that we use in our application, i was able to migrate part of it (create and excel file) but i can't get the part to actually parse an excel file done...
I keep getting this error no matter what modules i installed in my perl/site/lib folder..
Software error:
not well-formed (invalid token) at line 1, column 3, byte 3 at C:/Strawberry/perl/site/lib/XML/Parser.pm line 187.
at C:\inetpub\wwwroot\cgi-bin\carestreamhealth\importParts_test2test.pl line 255.
I'm at a lost on why this is not working, we have a current instance with the same scripts but running different perl (Active State) and it does work.. Problem with that is that we need to migrate to a windows server 2019 and we are not allow to install active state, we need to use strawberry perl 5.32.1
any help will be appreciate it
答案1
得分: 1
问题并不是一个格式不正确的XML,问题在于服务器无法访问发出请求的站点(我们将IP添加到了服务器白名单中),一切都按预期工作。感谢大家的评论!
英文:
The issue wasn't a malformed XML per say, the issue was that the server wasn't able to reach out to the site where the request was coming from (we added the ip to the server whitelist) and everything is working as expected. Thanks everyone for your comments. !
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论