version 1.5, 1999/09/17 12:08:23
|
version 1.6, 1999/09/30 15:43:35
|
Line 67 htmlDtdDump(xmlBufferPtr buf, xmlDocPtr
|
Line 67 htmlDtdDump(xmlBufferPtr buf, xmlDocPtr
|
*/ |
*/ |
static void |
static void |
htmlAttrDump(xmlBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur) { |
htmlAttrDump(xmlBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur) { |
CHAR *value; |
xmlChar *value; |
|
|
if (cur == NULL) { |
if (cur == NULL) { |
fprintf(stderr, "htmlAttrDump : property == NULL\n"); |
fprintf(stderr, "htmlAttrDump : property == NULL\n"); |
Line 149 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr
|
Line 149 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr
|
*/ |
*/ |
if (cur->type == HTML_TEXT_NODE) { |
if (cur->type == HTML_TEXT_NODE) { |
if (cur->content != NULL) { |
if (cur->content != NULL) { |
CHAR *buffer; |
xmlChar *buffer; |
|
|
/* uses the HTML encoding routine !!!!!!!!!! */ |
/* uses the HTML encoding routine !!!!!!!!!! */ |
buffer = xmlEncodeEntitiesReentrant(doc, cur->content); |
buffer = xmlEncodeEntitiesReentrant(doc, cur->content); |
Line 211 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr
|
Line 211 htmlNodeDump(xmlBufferPtr buf, xmlDocPtr
|
} |
} |
xmlBufferWriteChar(buf, ">"); |
xmlBufferWriteChar(buf, ">"); |
if (cur->content != NULL) { |
if (cur->content != NULL) { |
CHAR *buffer; |
xmlChar *buffer; |
|
|
buffer = xmlEncodeEntitiesReentrant(doc, cur->content); |
buffer = xmlEncodeEntitiesReentrant(doc, cur->content); |
if (buffer != NULL) { |
if (buffer != NULL) { |
Line 261 htmlDocContentDump(xmlBufferPtr buf, xml
|
Line 261 htmlDocContentDump(xmlBufferPtr buf, xml
|
* @mem: OUT: the memory pointer |
* @mem: OUT: the memory pointer |
* @size: OUT: the memory lenght |
* @size: OUT: the memory lenght |
* |
* |
* Dump an HTML document in memory and return the CHAR * and it's size. |
* Dump an HTML document in memory and return the xmlChar * and it's size. |
* It's up to the caller to free the memory. |
* It's up to the caller to free the memory. |
*/ |
*/ |
void |
void |
htmlDocDumpMemory(xmlDocPtr cur, CHAR**mem, int *size) { |
htmlDocDumpMemory(xmlDocPtr cur, xmlChar**mem, int *size) { |
xmlBufferPtr buf; |
xmlBufferPtr buf; |
|
|
if (cur == NULL) { |
if (cur == NULL) { |
Line 342 htmlSaveFile(const char *filename, xmlDo
|
Line 342 htmlSaveFile(const char *filename, xmlDo
|
fclose(output); |
fclose(output); |
|
|
xmlBufferFree(buf); |
xmlBufferFree(buf); |
return(ret * sizeof(CHAR)); |
return(ret * sizeof(xmlChar)); |
} |
} |
|
|