How to create an XDocument instance to load an XML file after deserializing an object?

I am developing an application for Windows Phone 7. I am new to Windows Phone 7. I am referring to the following link for serializing and deserializing XML.

http://www.codeproject.com/KB/windows-phone-7/wp7rssreader.aspx

The link above uses the LoadFromIso () function to deserialize the XML. I want to download the xml file after deserialization in the link above. In the simple case, we can do this, as in the following code. As in the following code, I want a "doc" in the link above. In the following code, we can perform various actions in an XML file using LINQ to XML with the following expression

doc = XDocument.Load(isfStream);  

The full code is as follows

IsolatedStorageFile isfData = IsolatedStorageFile.GetUserStoreForApplication();
            XDocument doc = null;
            IsolatedStorageFileStream isfStream = null;
            if (isfData.FileExists(strXMLFile))
            {
                isfStream = new IsolatedStorageFileStream(strXMLFile, FileMode.Open, isfData);
                doc = XDocument.Load(isfStream);                
                isfStream.Close();
            }

XDocument , XML LINQ to XML. - , XDocument, XML XML LINQ to XML?

+3
2

doc XDocument .
/doc.

+2

WP7, XML XDocument LINQ . , XDocument.

Linq

0

Source: https://habr.com/ru/post/1778960/


All Articles