Fetching Profile Data XML

Hi all,

So I need to do a check when a player joins my server and see which group they are in, here’s my plan:

Player connects -> SteamID64 sent to steam and return with xml -> do for k,v in pairs for each groupID64 to match the one we locally set -> Prints message (will do something else but for debugging sake )

So I got this:

	http.Fetch( "http://steamcommunity.com/profiles/"..util.SteamIDTo64( ply:SteamID() ).."?xml=1",
	function( stuff )
		print( "It failed :((" )

But now I need a way to transform the xml data into a table or a way I can get information from it.


You may find this link useful: http://forum.facepunch.com/showthread.php?t=896940

If you need something, be sure to Google it first. I googled “site:facepunch.com xml parser” and found that.

This is unreliable if the person chooses to have their profiles set to private or friends/users only.

Another way would be to use the groups member list which can be retrieved like this: http://steamcommunity.com/groups/{groupname}/memberslistxml/

Then you can do a simple string.find() without needing to parse the XML.