我有一个 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>
我想向xmlns
和serviceRequestContext
节点reinstateAccountInput
添加空
结果 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