TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sourabh Choubey
NA
236
43.7k
can not load xml file in xml document.load
Aug 13 2016 3:19 AM
.I have fruit list in xml file .i want to load this xml file so that i can read the data stored i n xmlfiles.i get the path where i stored my xml file but when i want to load xml file i get error.is there any way to load the storage xml file .Please help me..
here is my code
Uri dataUri = new Uri("ms-appx:///XMLFile/XMLHistory.xml");(here in datauri i have path of xml file)
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
var stream = await file.OpenStreamForReadAsync();
XDocument loadedData = XDocument.Load(stream);(here i get error)
please modify this...
Reply
Answers (
2
)
how to get the path of xml in xaml.cs page
Scrapping for UWP App