Hi, XML: ...<Category><Action><Game ID="9"/><Game ID="17"/></Action><Puzzle><Game ID="57"/> etc I need to read and store ID attributes for every element (Action, Puzzle...). Just can't find a way to read this attributes in asp. TIA
Not sure of the classic ASP approach but right off the top of my head you can always run regex to find all matches of your content pieces and manually parse them. Like Get all matches for "<Action>(.*)</Action>" Then get all matches for "<Game ID=(.*)/>" and replace the outer strings Dim GameMatchVal as string = Replace(GameMatch, "<Game ID=", "") GameMatchVal = Replace(GameMatch, "/>", "") In fact, i think you can get the "Grouped" object elements... so you can just extract whatever is between (.*)... but I'm not sure of the syntax off the otp of my head.
I fixed it already. Answer is so easy (as always) You do it like this: mystring=somenode.getAttribute("ID")