Post by altair on May 8, 2015 4:01:52 GMT 10
Hey guys,
I want to read a file in XmlReader. But I cannot do this :
-----------------CODE BEGINS------------------------
<verInfo codename="Sassy Penguin"> <verStatus>Sassy as always</verStatus> </verInfo>
<verInfo codename="Confidential Cow"> <verStatus>Confidential</verStatus> </verInfo> ------------------- CODE ENDS -----------------------
For e.g I want to get the info about Sassy Penguin. I want it to return Sassy As Always.
I have only done
--------------CODE BEGINS--------------------------
do while (xml.read()) { if (xml.NodeType == XmlNodeType.Element && xml.Name="verStatus") { //process the verSatus } }
-----------CODE ENDS--------------------------
So, any ideas how to do this.
Altair - The Flying One
|
|
Post by altair on May 8, 2015 18:58:40 GMT 10
|
|
Post by Nathan Lecompte on May 9, 2015 11:39:00 GMT 10
Wow, they are such a help (rofl)
I'm sorta blank on this to however :/
|
|