Home | History | Annotate | Download | only in xmlwf

Lines Matching refs:fp

30   FILE *fp = (FILE *)userData;
34 fputts(T("&"), fp);
37 fputts(T("<"), fp);
40 fputts(T(">"), fp);
44 fputts(T("
"), fp);
48 fputts(T("""), fp);
53 ftprintf(fp, T("&#%d;"), *s);
57 puttc(*s, fp);
64 attributeValue(FILE *fp, const XML_Char *s)
66 puttc(T('='), fp);
67 puttc(T('"'), fp);
72 puttc(T('"'), fp);
75 fputts(T("&"), fp);
78 fputts(T("<"), fp);
81 fputts(T("""), fp);
85 fputts(T("	"), fp);
88 fputts(T("
"), fp);
91 fputts(T("
"), fp);
95 fputts(T(">"), fp);
100 ftprintf(fp, T("&#%d;"), *s);
104 puttc(*s, fp);
125 FILE *fp = (FILE *)userData;
126 puttc(T('<'), fp);
127 fputts(name, fp);
136 puttc(T(' '), fp);
137 fputts(*atts++, fp);
138 attributeValue(fp, *atts);
141 puttc(T('>'), fp);
147 FILE *fp = (FILE *)userData;
148 puttc(T('<'), fp);
149 puttc(T('/'), fp);
150 fputts(name, fp);
151 puttc(T('>'), fp);
172 FILE *fp = (FILE *)userData;
174 puttc(T('<'), fp);
178 fputts(T("n1:"), fp);
179 fputts(sep + 1, fp);
180 fputts(T(" xmlns:n1"), fp);
181 attributeValue(fp, name);
185 fputts(name, fp);
198 puttc(T(' '), fp);
200 ftprintf(fp, T("n%d:"), nsi);
201 fputts(sep + 1, fp);
204 fputts(name, fp);
205 attributeValue(fp, *atts);
207 ftprintf(fp, T(" xmlns:n%d"), nsi++);
208 attributeValue(fp, name);
212 puttc(T('>'), fp);
218 FILE *fp = (FILE *)userData;
220 puttc(T('<'), fp);
221 puttc(T('/'), fp);
224 fputts(T("n1:"), fp);
225 fputts(sep + 1, fp);
228 fputts(name, fp);
229 puttc(T('>'), fp);
238 FILE *fp = (FILE *)userData;
239 puttc(T('<'), fp);
240 puttc(T('?'), fp);
241 fputts(target, fp);
242 puttc(T(' '), fp);
243 fputts(data, fp);
244 puttc(T('?'), fp);
245 puttc(T('>'), fp);
300 FILE *fp = (FILE *)XML_GetUserData((XML_Parser) userData);
302 puttc(*s, fp);
337 FILE *fp = (FILE *)XML_GetUserData(parser);
347 ftprintf(fp, T("<starttag name=\"%s\""), name);
350 fputts(T(">\n"), fp);
352 ftprintf(fp, T("<attribute name=\"%s\" value=\""), atts[0]);
353 characterData(fp, atts[1], (int)tcslen(atts[1]));
355 fputts(T("\" defaulted=\"yes\"/>\n"), fp);
357 fputts(T("\" id=\"yes\"/>\n"), fp);
359 fputts(T("\"/>\n"), fp);
361 fputts(T("</starttag>\n"), fp);
364 fputts(T("/>\n"), fp);
371 FILE *fp = (FILE *)XML_GetUserData(parser);
372 ftprintf(fp, T("<endtag name=\"%s\""), name);
374 fputts(T("/>\n"), fp);
382 FILE *fp = (FILE *)XML_GetUserData(parser);
383 ftprintf(fp, T("<pi target=\"%s\" data=\""), target);
384 characterData(fp, data, (int)tcslen(data));
385 puttc(T('"'), fp);
387 fputts(T("/>\n"), fp);
394 FILE *fp = (FILE *)XML_GetUserData(parser);
395 fputts(T("<comment data=\""), fp);
396 characterData(fp, data, (int)tcslen(data));
397 puttc(T('"'), fp);
399 fputts(T("/>\n"), fp);
406 FILE *fp = (FILE *)XML_GetUserData(parser);
407 fputts(T("<startcdata"), fp);
409 fputts(T("/>\n"), fp);
416 FILE *fp = (FILE *)XML_GetUserData(parser);
417 fputts(T("<endcdata"), fp);
419 fputts(T("/>\n"), fp);
426 FILE *fp = (FILE *)XML_GetUserData(parser);
427 fputts(T("<chars str=\""), fp);
428 characterData(fp, s, len);
429 puttc(T('"'), fp);
431 fputts(T("/>\n"), fp);
442 FILE *fp = (FILE *)XML_GetUserData(parser);
443 ftprintf(fp, T("<startdoctype name=\"%s\""), doctypeName);
445 fputts(T("/>\n"), fp);
452 FILE *fp = (FILE *)XML_GetUserData(parser);
453 fputts(T("<enddoctype"), fp);
455 fputts(T("/>\n"), fp);
466 FILE *fp = (FILE *)XML_GetUserData(parser);
467 ftprintf(fp, T("<notation name=\"%s\""), notationName);
469 ftprintf(fp, T(" public=\"%s\""), publicId);
471 fputts(T(" system=\""), fp);
472 characterData(fp, systemId, (int)tcslen(systemId));
473 puttc(T('"'), fp);
476 fputts(T("/>\n"), fp);
492 FILE *fp = (FILE *)XML_GetUserData(parser);
495 ftprintf(fp, T("<entity name=\"%s\""), entityName);
497 puttc(T('>'), fp);
498 characterData(fp, value, value_length);
499 fputts(T("</entity/>\n"), fp);
502 ftprintf(fp, T("<entity name=\"%s\""), entityName);
504 ftprintf(fp, T(" public=\"%s\""), publicId);
505 fputts(T(" system=\""), fp);
506 characterData(fp, systemId, (int)tcslen(systemId));
507 puttc(T('"'), fp);
508 ftprintf(fp, T(" notation=\"%s\""), notationName);
510 fputts(T("/>\n"), fp);
513 ftprintf(fp, T("<entity name=\"%s\""), entityName);
515 ftprintf(fp, T(" public=\"%s\""), publicId);
516 fputts(T(" system=\""), fp);
517 characterData(fp, systemId, (int)tcslen(systemId));
518 puttc(T('"'), fp);
520 fputts(T("/>\n"), fp);
530 FILE *fp = (FILE *)XML_GetUserData(parser);
531 fputts(T("<startns"), fp);
533 ftprintf(fp, T(" prefix=\"%s\""), prefix);
535 fputts(T(" ns=\""), fp);
536 characterData(fp, uri, (int)tcslen(uri));
537 fputts(T("\"/>\n"), fp);
540 fputts(T("/>\n"), fp);
547 FILE *fp = (FILE *)XML_GetUserData(parser);
549 fputts(T("<endns/>\n"), fp);
551 ftprintf(fp, T("<endns prefix=\"%s\"/>\n"), prefix);
755 FILE *fp = 0;
798 fp = tfopen(outName, T("wb"));
799 if (!fp) {
803 setvbuf(fp, NULL, _IOFBF, 16384);
805 puttc(0xFEFF, fp);
807 XML_SetUserData(parser, fp);
851 fclose(fp);