Question

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

J'ai ce xml .. Comment obtenir la valeur de TOPIC_TITLE en utilisant XPath?

Était-ce utile?

La solution

/methodResponse
   /params
      /param
         /value
            /struct
              /member[name='topic_title']
                 /value
                    /string
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top