- tree.c: zb@bisp.com reported an error in xmlNodeGetLang()

Daniel
This commit is contained in:
Daniel Veillard 2001-05-09 10:51:31 +00:00
parent 257d910769
commit c17337c062
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed May 9 12:50:15 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* tree.c: zb@bisp.com reported an error in xmlNodeGetLang()
Tue May 8 12:31:40 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* parser.c: added xmlParseExternalEntityPrivate() to allow

2
tree.c
View File

@ -3025,7 +3025,7 @@ xmlNodeGetLang(xmlNodePtr cur) {
xmlChar *lang;
while (cur != NULL) {
lang = xmlGetProp(cur, BAD_CAST "xml:lang");
lang = xmlGetNsProp(cur, BAD_CAST "lang", XML_XML_NAMESPACE);
if (lang != NULL)
return(lang);
cur = cur->parent;