diff options
| author | Daniel Veillard <veillard@src.gnome.org> | 2000-03-14 18:30:20 +0000 |
|---|---|---|
| committer | Daniel Veillard <veillard@src.gnome.org> | 2000-03-14 18:30:20 +0000 |
| commit | cf46199c5e2c94781ef647612b3b43618b36b940 (patch) | |
| tree | 0b72764ed40721db38788682d03b70b492262c89 /HTMLtree.c | |
| parent | 76234da1520f108588bbec7428f7d7f663e4b96e (diff) | |
| download | android_external_libxml2-cf46199c5e2c94781ef647612b3b43618b36b940.tar.gz android_external_libxml2-cf46199c5e2c94781ef647612b3b43618b36b940.tar.bz2 android_external_libxml2-cf46199c5e2c94781ef647612b3b43618b36b940.zip | |
This is the 2.0.0-beta, lots and lots and lots of changes
Have a look at http://xmlsoft.org/upgrade.html
Daniel
Diffstat (limited to 'HTMLtree.c')
| -rw-r--r-- | HTMLtree.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -80,7 +80,7 @@ htmlAttrDump(xmlBufferPtr buf, xmlDocPtr doc, xmlAttrPtr cur) { } xmlBufferWriteChar(buf, " "); xmlBufferWriteCHAR(buf, cur->name); - value = xmlNodeListGetString(doc, cur->val, 0); + value = xmlNodeListGetString(doc, cur->children, 0); if (value) { xmlBufferWriteChar(buf, "="); xmlBufferWriteQuotedString(buf, value); @@ -212,7 +212,7 @@ htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) { } return; } - if ((cur->content == NULL) && (cur->childs == NULL)) { + if ((cur->content == NULL) && (cur->children == NULL)) { if ((info != NULL) && (info->endTag != 0)) xmlBufferWriteChar(buf, ">"); else { @@ -242,15 +242,15 @@ htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) { xmlFree(buffer); } } - if (cur->childs != NULL) { - if ((cur->childs->type != HTML_TEXT_NODE) && - (cur->childs->type != HTML_ENTITY_REF_NODE) && - (cur->childs != cur->last)) + if (cur->children != NULL) { + if ((cur->children->type != HTML_TEXT_NODE) && + (cur->children->type != HTML_ENTITY_REF_NODE) && + (cur->children != cur->last)) xmlBufferWriteChar(buf, "\n"); - htmlNodeListDump(buf, doc, cur->childs); + htmlNodeListDump(buf, doc, cur->children); if ((cur->last->type != HTML_TEXT_NODE) && (cur->last->type != HTML_ENTITY_REF_NODE) && - (cur->childs != cur->last)) + (cur->children != cur->last)) xmlBufferWriteChar(buf, "\n"); } if (!htmlIsAutoClosed(doc, cur)) { @@ -307,8 +307,8 @@ htmlDocContentDump(xmlBufferPtr buf, xmlDocPtr cur) { xmlBufferWriteChar(buf, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">"); } - if (cur->root != NULL) { - htmlNodeListDump(buf, cur, cur->root); + if (cur->children != NULL) { + htmlNodeListDump(buf, cur, cur->children); } xmlBufferWriteChar(buf, "\n"); cur->type = type; |
