justnobody
New Member
I am new to C# and I am trying to read xml from URL.xml looks like this\[code\]<posts> <post> <title>title1</title> <des>des1</des> </post> <post> <title>title2</title> <des>des2</des> </post> .....</posts>\[/code\]And this is what I am using to parse it.\[code\] String uri = "url"; XDocument books = XDocument.Load(uri);\[/code\]When the debug hits \[code\]XDocument\[/code\] line it throws an exception and skips it.How can I avoid this?