Nmxmlparser.cc compile issue fix with boost 1.53

I've replaced occurrences of shared_dynamic_cast with dynamic_pointer_cast to support compilation when boost 1.53.0 is being used. The file affected is nmxmlparser.cc. There may also be other source files having the same issue, but I've not come across them yet!