implement INotifyCollectionChanged etc on xml file changed

Posted by netmajor on Stack Overflow See other posts from Stack Overflow or by netmajor
Published on 2010-03-24T02:10:54Z Indexed on 2010/03/24 2:23 UTC
Read the original article Hit count: 576

Filed under:
|
|
|

It's possible to implement INotifyCollectionChanged or other interface like IObservable to enable to bind filtered data from xml file on this file changed ? I see examples with properties or collection, but what with files changes ?

I have that code to filter and bind xml data to list box:

XmlDocument channelsDoc = new XmlDocument();
channelsDoc.Load("RssChannels.xml");
XmlNodeList channelsList = channelsDoc.GetElementsByTagName("channel");
this.RssChannelsListBox.DataContext = channelsList;

© Stack Overflow or respective owner

Related posts about iobservable

Related posts about inotify