The processing instruction target matching [xX][mM][lL] is not allowed
生活随笔
收集整理的這篇文章主要介紹了
The processing instruction target matching [xX][mM][lL] is not allowed
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
問題背景
今天調(diào)試eas的ws接口,發(fā)現(xiàn)報(bào)錯(cuò)“The processing instruction target matching “[xX][mM][lL]” is not allowed”
解決方案
仔細(xì)檢查XML,發(fā)現(xiàn)String strXml = " <?xml version='1.0'開頭是不允許有空格的,可能是我用sublime text列模式修改導(dǎo)致。
也就是說格式化為XML的String,開頭不能有空格,手工修改即可,或者可以加個(gè)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> "//.....總結(jié)
以上是生活随笔為你收集整理的The processing instruction target matching [xX][mM][lL] is not allowed的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: bp神经网络模型的优缺点,什么是BP神经
- 下一篇: 人事管理系统都有哪些功能和优势?