开发者

Objective C, A Question about xpath

开发者 https://www.devze.com 2023-02-17 20:34 出处:网络
<methodResponse> <params> <param> <value> <struct> <member> <name>topic_id</name>
<methodResponse>
    <params>
        <param>
            <value>
                <struct>
                    <member>
                        <name>topic_id</name>
                        <value>
                            <string>102</string>
                        </value>
                    </member>
                    <member>
                        <name>topic_title</name>
                        <value>
                            <string>Login test</string>
                        </value>
                    </member>
                </struct>
            </value>
        </param>
    </params>
</method开发者_运维知识库Response>

I have this xml.. How to get the value of topic_title using xpath?


/methodResponse
   /params
      /param
         /value
            /struct
              /member[name='topic_title']
                 /value
                    /string
0

精彩评论

暂无评论...
验证码 换一张
取 消