目标C,关于xpath的问题

时间:2011-03-20 23:35:31

标签: objective-c xpath touchxml

<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>
</methodResponse>

我有这个xml ..如何使用xpath获取topic_title的值?

1 个答案:

答案 0 :(得分:1)

/methodResponse
   /params
      /param
         /value
            /struct
              /member[name='topic_title']
                 /value
                    /string
相关问题