如何为xml以下创建xml架构我面临着使用命名空间前缀创建架构的问题:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<sch:GET_ACCT xmlns:sch="http://www.schamst.com/webservice/schemas">
<sch:STATUS>true</sch:STATUS>
<sch:ERRORs/>
</sch:GET_ACCT>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
答案 0 :(得分:0)
你只需要移动xmlns:sch =&#34;&#34;进入SOAP-ENV:Envelope标签
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.schamst.com/webservice/schemas">
<SOAP-ENV:Body>
<sch:GET_ACCT>
<sch:STATUS>true</sch:STATUS>
<sch:ERRORs/>
</sch:GET_ACCT>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>