1

私はXMLを持っています:

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:p1="http://www.w3.org/2001/XMLSchema-instance">
    <Body>
        <reinstateAccountRequest xmlns="http://abc.xyx/">
            <serviceRequestContext>
                <a>t</a>
                <b>t</b>
            </serviceRequestContext>
            <reinstateAccountInput>
                <a>t</a>
                <b>t</b>
            </reinstateAccountInput>
        </reinstateAccountRequest>
    </Body>
</Envelope>

andノードに空xmlnsを追加したいserviceRequestContextreinstateAccountInput

結果の XML は次のようになります。

<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:p1="http://www.w3.org/2001/XMLSchema-instance">
    <Body>
        <reinstateAccountRequest xmlns="http://abc.xyx/">
            <serviceRequestContext xmlns="">
                <a>t</a>
                <b>t</b>
            </serviceRequestContext>
            <reinstateAccountInput xmlns="">
                <a>t</a>
                <b>t</b>
            </reinstateAccountInput>
        </reinstateAccountRequest>
    </Body>
</Envelope>

このための XSLT の書き方

4

1 に答える 1