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