locked
Reading file through XLinq RRS feed

  • Question

  • User351619809 posted

    Hi All,

    I am trying to read an XML file using XLinq. I can read all the nodes except  the one that has TestStartTime in it, I can read the testStartTime till 20140618 and I cannot read the value after colon:

    <Value name="TestStartTime">20140618:143357</Value>

    I am reading the value like this.

       XElement allData = XElement.Load("TestData.xml"); 
                if (allData != null) 
                { 
                    IEnumerable<XElement> authors = allData.Descendants("TestReport1"); 
                    foreach(XElement value in values) 
                        Console.WriteLine((string)value); 
                } 

    any help will be appreciated.

    Monday, December 29, 2014 1:20 PM

Answers

All replies