繁体   English   中英

如何获取XML有效负载属性

[英]How to get the XML payload property

我有一个有效载荷,如下所示。

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
        <soapenv:Body>
            <response xmlns="http://edip-api.macausjm-glp.com/apiservice">
                <recipientAddress>zoehuang@asqimacau.com,well168168@gmail.com</recipientAddress>
                <subject>Test email</subject>
                <content>
                    <html>
                        <h1>this is the title</h1>
                        <br />
                        <p>this is the content................</p>
                    </html>
                </content>
            </response>
        </soapenv:Body>
    </soapenv:Envelope> {org.apache.synapse.mediators.builtin.LogMediator}

我需要获取如下所示的内容值,如何获取该属性?

 <html>
     <h1>this is the title</h1>
     <br />
     <p>this is the content................</p>
 </html>

要将XML树存储在属性中,请使用type ='OM'

因此<property name="testAmanda" expression="//html" type="OM" />

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM