Using XPath here doesn't add any benefit.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virHashTablePtr *bootHash)
{
xmlNodePtr *nodes = NULL;
- xmlNodePtr oldnode;
char *tmp = NULL;
char *name = NULL;
int ret = -1;
}
if (n == 1) {
- oldnode = ctxt->node;
- ctxt->node = nodes[0];
tmp = virXMLPropString(nodes[0], "type");
if (!tmp) {
if (STREQ_NULLABLE(tmp, "slic")) {
VIR_FREE(tmp);
- tmp = virXPathString("string(.)", ctxt);
+ tmp = virXMLNodeContentString(nodes[0]);
def->os.slic_table = virFileSanitizePath(tmp);
VIR_FREE(tmp);
} else {
tmp);
goto error;
}
- ctxt->node = oldnode;
}
if (virDomainDefParseBootXML(ctxt, def) < 0)