• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching refs:filename

2377 	fprintf(stderr, "%s validates\n", sctxt->filename);
2379 fprintf(stderr, "%s fails to validate\n", sctxt->filename);
2382 sctxt->filename);
2440 * @filename: the file name
2445 * loads a new document specified by the filename
2450 xmlShellLoad(xmlShellCtxtPtr ctxt, char *filename,
2457 if ((ctxt == NULL) || (filename == NULL)) return(-1);
2463 doc = htmlParseFile(filename, NULL);
2469 doc = xmlReadFile(filename,NULL,0);
2479 xmlFree(ctxt->filename);
2485 ctxt->filename = (char *) xmlCanonicPath((xmlChar *) filename);
2495 * @filename: the file name
2500 * Write the current node to the filename, it saves the serialization
2506 xmlShellWrite(xmlShellCtxtPtr ctxt, char *filename, xmlNodePtr node,
2511 if ((filename == NULL) || (filename[0] == 0)) {
2515 if (access((char *) filename, W_OK)) {
2517 "Cannot write to %s\n", filename);
2523 if (xmlSaveFile((char *) filename, ctxt->doc) < -1) {
2525 "Failed to write to %s\n", filename);
2531 if (htmlSaveFile((char *) filename, ctxt->doc) < 0) {
2533 "Failed to write to %s\n", filename);
2537 if (xmlSaveFile((char *) filename, ctxt->doc) < -1) {
2539 "Failed to write to %s\n", filename);
2547 f = fopen((char *) filename, "w");
2550 "Failed to write to %s\n", filename);
2563 * @filename: the file name (optional)
2568 * Write the current document to the filename, or it's original name
2573 xmlShellSave(xmlShellCtxtPtr ctxt, char *filename,
2579 if ((filename == NULL) || (filename[0] == 0))
2580 filename = ctxt->filename;
2581 if (filename == NULL)
2584 if (access((char *) filename, W_OK)) {
2586 "Cannot save to %s\n", filename);
2592 if (xmlSaveFile((char *) filename, ctxt->doc) < 0) {
2594 "Failed to save to %s\n", filename);
2599 if (htmlSaveFile((char *) filename, ctxt->doc) < 0) {
2601 "Failed to save to %s\n", filename);
2604 if (xmlSaveFile((char *) filename, ctxt->doc) < 0) {
2606 "Failed to save to %s\n", filename);
2790 * @filename: the output buffer
2799 xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
2813 if (filename == NULL)
2826 ctxt->filename = (char *) xmlStrdup((xmlChar *) filename);
2920 fprintf(ctxt->output, "\twrite [name] write the current node to the filename\n");
2945 "Write command requires a filename argument\n");
3256 if (ctxt->filename != NULL)
3257 xmlFree(ctxt->filename);