let xpath = Xml.xpath_eval_expression xpathctx "/domain/devices/disk[@device=\"disk\"]/target/@bus" in
let nr_nodes = Xml.xpathobj_nr_nodes xpath in
assert (nr_nodes = 1);
- let node = Xml.xpathobj_node xml xpath 0 in
+ let node = Xml.xpathobj_node xpath 0 in
let node = Xml.node_as_string node in
assert (node = "virtio")
let xpath = Xml.xpath_eval_expression xpathctx "/domain/devices/disk[@device=\"disk\"]/target/@bus" in
let nr_nodes = Xml.xpathobj_nr_nodes xpath in
assert (nr_nodes = 1);
- let node = Xml.xpathobj_node xml xpath 0 in
+ let node = Xml.xpathobj_node xpath 0 in
let node = Xml.node_as_string node in
assert (node = "virtio")