[Libvirt-cim] [PATCH 10/20] Fix xml parsing algorithm for parse_mem_device()