fix bug: if xml has multiple namespaces, the tool only output the first one.