Support targetPath on xml2json
(cherry picked from commit 8ad5c7e)