I have a function that grabs an XML document and transforms it according to an XSL document. It then places the result into a div with the id laneconfigdisplay
laneconfigdisplay
Though the event DOMSubtreeModified is deprecated, its working as of now, so for any makeshift projects you can use it as following.
$("body").on('DOMSubtreeModified', "#mydiv", function() { alert('changed'); });
In the long term though, you'll have to use the MutationObserver API.