Empty XML Nodes

ginawuzzy

New Member
I'm making for my college an application which gathers data out from the XML. Beside the rest of the class am I making this in the Modern UI of Windows 8 which is working great for me except for one little thing.When I gather the child nodes of a specific node do I get non-existent/empty values with it.The values I should get are these.
  • Hello
  • Bye
  • Hello World
But what I get into my list view are the following..(The . means empty)
  • .
  • Hello
  • .
  • Bye
  • .
  • Hello World
  • .
The code I use to get the items in the list view is the following.\[code\] foreach (IXmlNode Node in XmlFile.SelectSingleNode("XML").SelectSingleNode("List").ChildNodes) { lvList.Items.Add(Node.InnerText.ToString()); }\[/code\]How do I get rid of the empty values?
 
Back
Top