Reading a custom XML String with asp.NET in VB -
OK, I have a custom XML string that changes the structure to see it as an important value pair here Is, therefore, unable to provide
I want to be able to hold attribute value and allocate them in a variable, so I finish something like that. String = "SomeName" as thsValueTwo string = "SOMEFILE.jpg" as thsValueThree string = "SOMEALT" as thsValueFour = string = "SOMEFILE.jpg" SomeClass " I have tried to do something similar to this with a destiny xDocument = XDocument.Parse (" here is my XML Sting ") thsValueOne = xDoc.Descendants (" Key.AttributeValue "). Go (0). Take (1). Ostring I am thinking that I am not close.
Well, this XML was based on the answer to the question was easy to answer was able to
dim xDoc form XDocument = XDocument.Parse (thsXmlContent) thsValueOne = xDoc.Root.Descendants & Lt; Key & gt; (0) @ AttributeValue thsValueTwo = xDoc.Root.Descendants & Lt ;. Key & gt; (1) @ AttributeValue thsValueThree = xDoc.Root.Descendants & Lt ;. Key & gt; (2). @Attr ibuteValue thsValueFour = xDoc.Root.Descendants & Lt; Key & gt; (3) @ AttributeValue
Comments
Post a Comment