Как распарсить xml?



  • Как достать <steamID64>?

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><profile>
    	<steamID64>76561197986943540</steamID64>
    	<steamID><![CDATA[Gabe]]></steamID>
    	<onlineState>offline</onlineState>
    	<stateMessage><![CDATA[Last Online ]]></stateMessage>
    	<privacyState>friendsonly</privacyState>
    	<visibilityState>1</visibilityState>
    	<avatarIcon><![CDATA[https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/ef/efba1badeaeb200ae715b7840a5f27ca1c68a234.jpg]]></avatarIcon>
    	<avatarMedium><![CDATA[https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/ef/efba1badeaeb200ae715b7840a5f27ca1c68a234_medium.jpg]]></avatarMedium>
    	<avatarFull><![CDATA[https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/ef/efba1badeaeb200ae715b7840a5f27ca1c68a234_full.jpg]]></avatarFull>
    	<vacBanned>0</vacBanned>
    	<tradeBanState>None</tradeBanState>
    	<isLimitedAccount>0</isLimitedAccount>
    </profile>
    


  • xPath получить текст //profile/steamid64


Log in to reply