[xml] Shell and write command



Hello,
May be I am wrong but the 'write' command of the shell seems not to work
because the 'node' parameter is always NULL:
int
xmlShellWrite(xmlShellCtxtPtr ctxt, char *filename, xmlNodePtr node,
              xmlNodePtr node2 ATTRIBUTE_UNUSED)
{
    if (node == NULL)
        return (-1);
// ...

            if ((arg == NULL) || (arg[0] == 0))
                xmlGenericError(xmlGenericErrorContext,
                        "Write command requires a filename argument\n");
            else
                xmlShellWrite(ctxt, arg, NULL, NULL);

May be 'ctx->node' should be used.
Many thanks for this great tool.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]