XML Parsing with same tag

Simsvrhpk

New Member
I need to get 1) Enter User Name / Enter Password Value 2) [email protected] / abcd* Value in seperate list..\[code\] <steps id="0" last="3"> <step id="1" type="ValidateStep"> <parameterizedString><text>Enter User Name</text></parameterizedString> <parameterizedString><text>[email protected]</text></parameterizedString> <description> </description> </step> <step id="2" type="ValidateStep"> <parameterizedString><text>EnterPassword</text> </parameterizedString> <parameterizedString><text>abcd*</text></parameterizedString> <description></description></step> <step id="3" type="ActionStep"> <parameterizedString> <text>Click on Login Button</text> </parameterizedString><parameterizedString /> <description /> </step> </steps> XDocument doc = XDocument.Parse(xmlSteps); var values = (from f in doc.Elements().Descendants() select f.Attribute("text").Value).ToArray();\[/code\]
 
Back
Top