From 1323e67e88783028e2c0ae2ff7502a07228bc52a Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Thu, 7 Aug 2008 19:07:21 -0300 Subject: [PATCH] Atom namespace is now a macro --- src/atom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/atom.c b/src/atom.c index c8bf659..becb1a2 100644 --- a/src/atom.c +++ b/src/atom.c @@ -19,6 +19,8 @@ #include +#define ATOM_NAMESPACE "http://www.w3.org/2005/Atom" + typedef xmlDocPtr AtomEntry; AtomEntry @@ -29,7 +31,7 @@ atom_entry_new (void) xmlNodePtr node; doc = xmlNewDoc ("1.0"); node = xmlNewNode (ns, "entry"); - xmlNewNs (node, "http://www.w3.org/2005/Atom", NULL); + xmlNewNs (node, ATOM_NAMESPACE, NULL); xmlDocSetRootElement (doc, node); return doc; } -- 2.20.1