Domanda

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

Ho questo XML .. Come ottenere il valore di Topic_Title usando XPath?

È stato utile?

Soluzione

/methodResponse
   /params
      /param
         /value
            /struct
              /member[name='topic_title']
                 /value
                    /string
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top