small fix for nodedev_xml

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add test for nodedev-dumpxml

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>