Windows phone 8 XElement异常

Windows phone 8 XElement异常,windows-phone-8,windows-phone,xelement,Windows Phone 8,Windows Phone,Xelement,试图分析结果并引发异常 - $exception {System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextRea

试图分析结果并引发异常

-       $exception  {System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text)
at TwitterSample.ViewModels.TwitterViewModel.<>c__DisplayClass4.<LoadPage>b__1()}   System.Exception {System.Xml.XmlException}
-$exception{System.Xml.xmleexception:根级别的数据无效。第1行,位置1。
位于System.Xml.XmlTextReaderImpl.Throw(异常e)
在System.Xml.XmlTextReaderImpl.Throw(String res,String arg)
位于System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()处
位于System.Xml.XmlTextReaderImpl.ParseDocumentContent()处
位于System.Xml.XmlTextReaderImpl.Read()处
位于System.Xml.XmlReader.MoveToContent()处
在System.Xml.Linq.XElement.Load(XmlReader、LoadOptions)
位于System.Xml.Linq.XElement.Parse(字符串文本,加载选项)
位于System.Xml.Linq.XElement.Parse(字符串文本)
在TwitterSample.ViewModels.TwitterViewModel.c__DisplayClass4.b__1()}System.Exception{System.Xml.xmleexception}

我正在尝试绑定无限滚动和详细信息页面


有人能帮我吗?

正如错误所示,您给
Parse
方法的参数不是有效的XML文档。由于您的变量名为
strRequestUri
,我猜您试图将URI解析为XML,这是不可能的。首先,下载数据(使用HttpClient或WebClient),然后解析该数据感谢您的正确,strRequestUri不是要解析的,需要解析的是strResult。我有一个问题。LLS可以工作,但是每次它加载更多的项目,它就会复制它们。所以我看到每页10个,当加载下一个10个时,它与前一个10个相同