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
Samuel Vaesy
NA
8
0
Problem with .xml and list view
May 15 2008 9:57 AM
Hello, my first post here \o/
Im also quite noob whit C#, but to the point...
I'm trying to display data from .xml file (which is updated periodically) in listView, but so far I haven't got anything working properly yet. Practically the data which should be displayed is group of measured temperatures saved to .xml file.
I got one version working somehow, but it didn't "update" the listView, it only added new information to it...
So, could you advise me, which would be the best way to get data from .xml file to the listView so that every time this loop runs, it replaces old values wiht new ones? Is the listView the best way to handle this, or are there some other(better) ways to do this?
The Content of the .xml file looks like this(form of the content can be changed if it eases the display "procedure"):
<sensor0>
<id>T10</id>
<description>Temperature0</description>
<value>0</value>
</sensor0>
<sensor1>
<id>T11</id>
<description>Temperature1</description>
<value>0</value>
</sensor1>
<sensor2>
<id>T12</id>
<description>Temperature2</description>
<value1>23</value1>
</sensor2>
<sensor3>
<id>T13</id>
<description>Temperature3</description>
<value>0</value>
</sensor3>
Reply
Answers (
0
)
NP101 Synchronized()
Problem with updating values to .xml file