如何使用名称空间前缀创建XML模式

时间:2016-03-03 11:54:03

标签: xml schema

如何为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>

1 个答案:

答案 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>
相关问题