Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - RE: NodeChanged Event not firing NodeChanged Event not firingTo: NULL Date: 11/1/2006 10:43:00 AM
I have an XML file that I want to monitor for changes. I've written
XmlDocument XML_document = new XmlDocument ( ) ;
XML_document.Load ( _XML_document_path ) ;
XML_document.NodeChanged +=
new XmlNodeChangedEventHandler (
XML_document_NodeChanged ) ;
and the XmlNodeChangedEventHandler (somewhat simplified) is:
public static void XML_document_NodeChanged (
object source,
XmlNodeChangedEventArgs args )
{
Console.WriteLine ( "Node changed event <{0}> changed",
args.Node.Name ) ;
}
When I execute the program, it enters a loop, printing out the contents of
the XML file every ten seconds.
I then edit the XML file and, upon saving it, I was expecting the
NodeChanged Event to fire. It didn't.
What am I missing.
TIA
Gus
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
