fixed xmlGetProp to return "" when the attribute is NULL, Daniel.
diff --git a/tree.c b/tree.c
index 1447855..ea67248 100644
--- a/tree.c
+++ b/tree.c
@@ -2010,7 +2010,11 @@
 
     while (prop != NULL) {
         if (!xmlStrcmp(prop->name, name)) 
-	    return(xmlNodeListGetString(node->doc, prop->val, 1));
+	    CHAR *ret;
+
+	    ret = xmlNodeListGetString(node->doc, prop->val, 1);
+	    if (ret == NULL) return(xmlStrdup(""));
+	    return(ret);
 	prop = prop->next;
     }
     return(NULL);