The processing instruction target matching [xX][mM][lL] is not allowed
生活随笔
收集整理的這篇文章主要介紹了
The processing instruction target matching [xX][mM][lL] is not allowed
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題背景
今天調試eas的ws接口,發現報錯“The processing instruction target matching “[xX][mM][lL]” is not allowed”
解決方案
仔細檢查XML,發現String strXml = " <?xml version='1.0'開頭是不允許有空格的,可能是我用sublime text列模式修改導致。
也就是說格式化為XML的String,開頭不能有空格,手工修改即可,或者可以加個trim()去掉頭尾的空格即可。
String strXml = "<?xml version='1.0' encoding='utf-8' standalone='yes'?>"+"<Request> "+" <BillType>310</BillType> "+" <BizType>210</BizType> "+" <TransactionType>010</TransactionType> "+" <SyncSystem>E3</SyncSystem> "//.....總結
以上是生活随笔為你收集整理的The processing instruction target matching [xX][mM][lL] is not allowed的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: bp神经网络模型的优缺点,什么是BP神经
- 下一篇: 人事管理系统都有哪些功能和优势?