Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs

前端之家收集整理的这篇文章主要介绍了Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

问题描述:@H_502_3@


@H_502_3@

当SoapUI访问一个webservice时,对于某些webserive服务,如果webserive的输入参数要求是xml格式,如果xml格式输入不正确,会报“Unmarshalling Error: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [9,14]”的错误信息。@H_502_3@


@H_502_3@

@H_502_3@

虽然输入参数已经符合xml的标准格式,但是由于转义符号的原因,所以出现了这样的错误。@H_502_3@

因此,在输入xml格式的参数时,首先需要添加<?xml version="1.0" encoding="UTF-8"?>(注意:这一行必须出现在第一行,并且需要顶格,前面没有任何空格或其他字符),使得输入参数符合xml标准;其次对于转义字符,需要进行改变。@H_502_3@

在这里,列举出常用的一些转义字符:@H_502_3@


@H_502_3@

特殊符号@H_502_3@

代码@H_502_3@

<@H_502_3@

&lt;@H_502_3@

>@H_502_3@

&gt;@H_502_3@

"@H_502_3@

&quot;@H_502_3@

&@H_502_3@

&amp;@H_502_3@

版权标志@H_502_3@

&copy;@H_502_3@

商标标志@H_502_3@

&reg;@H_502_3@

空格@H_502_3@

&nbsp;@H_502_3@

.@H_502_3@

&#8226@H_502_3@

猜你在找的XML相关文章