[Libvirt-cim] [PATCH 30/47] Fix xml generation algorithm in mem_xml()