How can i parse this XML with C# WP7 to different lists for binding different panorama pages:
<root>
<main1>
<item>
<id>1</id>
</item>
<item>
<id>2</id>
</item>
</main1>
<main2>
<item>
<id>1</id>
</item>
<item>
<id>2</id>
</item>
<main2>
</root>
The most efficient (and memory preserving) way to parse large XML documents is to use the
XmlReader. Se the MSDN howto for a reasonable example.The easiest way to parse an XML document is usually the
XDocumentclass, but that class reads the whole document into memory at once and is not recommendable for large documents.