Please don't just return NULL, add CCLOG to warn "This type cannot appear in property list". Actually, series of dynamic_cast isn't good solution, but it is only solution until #2401 will be implemented.

Style note: no need to declare tinyxml2::XMLElement* rootNode for whole function.