开发者

Parsing XML from Windows Phone 7

<ResponseOfArrayOfQuestions>
  <Result>
    <Questions>
        <DESCRIPTION>Ask me?</DESCRIPTION>
        <DIFFICULTY>1</DIFFICULTY>
        <ID>1</ID>
        <LK_recordstatusid>True</LK_recordstatusid>
        <oAnswers>
            <Answers>
                <DESCRIPTION>me</DESCRIPTION>
                <ID>1</ID>
                <ISCORRECT>False</ISCORRECT>
            </Answers>
            <Answers>
                <DESCRIPTION>you</DESCRIPTION>
                <ID>2</ID>
                <ISCORRECT>False</ISCORRECT>
            </Answers>
            <Answers>
                <DESCRIPTION>Everyone</DESCRIPTION>
                <ID>3</ID>
                <ISCORRECT>False</ISCORRECT>
            </Answers>
            <Answers>
                <DESCRIPTION>NoOne</DESCRIPTION>
                <ID>4</ID>
                <ISCORRECT>True</ISCORRECT>
            </Answers>
        </oAnswers>
    </Questions>
    <Questions>
    </Questions>
    .
    .
    .
  </Result>
  <Status>SUCCESS</Status>
  <StatusCode>200</StatusCod开发者_StackOverflowe>
</ResponseOfArrayOfQuestions>

Can anyone please help me parse this so so confusing XML which I have been trying for over days? :( Thanks.


You can use LINQ.

Here are links to Stackoverflow Q&A of its usage:

Windows Phone 7 and System.Xml.Linq library

LINQ to read XML

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜