1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

investigating xmlNodeGetContent() on namespace nodes and removed a few

* tree.c: investigating xmlNodeGetContent() on namespace nodes
  and removed a few warnings
Daniel
This commit is contained in:
Daniel Veillard
2002-10-14 15:39:04 +00:00
parent 819d5cb84d
commit 96c3a3bf5e
2 changed files with 12 additions and 3 deletions

10
tree.c
View File

@ -3438,7 +3438,7 @@ xmlGetNodePath(xmlNodePtr node)
xmlChar *buffer = NULL, *temp;
size_t buf_len;
xmlChar *buf;
char *sep;
const char *sep;
const char *name;
char nametemp[100];
int occur = 0;
@ -4091,8 +4091,12 @@ xmlNodeGetContent(xmlNodePtr cur)
case XML_DOCB_DOCUMENT_NODE:
#endif
return (NULL);
case XML_NAMESPACE_DECL:
return (xmlStrdup(((xmlNsPtr) cur)->href));
case XML_NAMESPACE_DECL: {
xmlChar *tmp;
tmp = xmlStrdup(((xmlNsPtr) cur)->href);
return (tmp);
}
case XML_ELEMENT_DECL:
/* TODO !!! */
return (NULL);