Fixed the output of empty attributes, Daniel.
diff --git a/ChangeLog b/ChangeLog
index 69efee5..b3a3974 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Feb 8 16:10:15 CET 1999 Daniel Veillard <Daniel.Veillard@w3.org>
+
+ * tree.c: patched an error outputting empty attribute values.
+ * Makefile.am and doc/makefile.am: have been updated during the
+ week-end. Sorry for an empty CVS log, I got a shell problem.
+
Mon Feb 1 12:10:13 CET 1999 Daniel Veillard <Daniel.Veillard@w3.org>
* tree.h: cleaned up using enums instead of defines
diff --git a/tester.c b/tester.c
index 945464e..927eda2 100644
--- a/tester.c
+++ b/tester.c
@@ -38,8 +38,7 @@
* Note: there is a couple of errors introduced on purpose.
*/
static CHAR buffer[] =
-"\n\
-<?xml version=\"1.0\"?>\n\
+"<?xml version=\"1.0\"?>\n\
<?xml:namespace ns = \"http://www.ietf.org/standards/dav/\" prefix = \"D\"?>\n\
<?xml:namespace ns = \"http://www.w3.com/standards/z39.50/\" prefix = \"Z\"?>\n\
<D:propertyupdate>\n\
@@ -75,6 +74,7 @@
doc->root = xmlNewDocNode(doc, NULL, "EXAMPLE", NULL);
xmlSetProp(doc->root, "prop1", "gnome is great");
xmlSetProp(doc->root, "prop2", "&linux; too");
+ xmlSetProp(doc->root, "emptyprop", "");
tree = xmlNewChild(doc->root, NULL, "head", NULL);
subtree = xmlNewChild(tree, NULL, "title", "Welcome to Gnome");
tree = xmlNewChild(doc->root, NULL, "chapter", NULL);
diff --git a/tree.c b/tree.c
index 5892a4e..1447855 100644
--- a/tree.c
+++ b/tree.c
@@ -2307,6 +2307,8 @@
xmlBufferWriteCHAR(value);
xmlBufferWriteChar("\"");
free(value);
+ } else {
+ xmlBufferWriteChar("=\"\"");
}
}