Update NMXmlParser.cc

Boost 1.53.0 doesn't support shared_dynamic_cast(deprecated and removed in boost). It has to be replaced by dynamic_pointer_cast.