[gnote] Define the namespaces when serializing



commit 4848da95b2f72f638d86aa5794e17fb28ae93e48
Author: Debarshi Ray <debarshir src gnome org>
Date:   Mon Dec 28 16:43:04 2009 +0200

    Define the namespaces when serializing

 src/notebuffer.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/notebuffer.cpp b/src/notebuffer.cpp
index 3269519..6ef594f 100644
--- a/src/notebuffer.cpp
+++ b/src/notebuffer.cpp
@@ -1161,6 +1161,14 @@ namespace gnote {
 
     xml.write_start_element ("", "note-content", "");
     xml.write_attribute_string ("", "version", "", "0.1");
+    xml.write_attribute_string("xmlns",
+                               "link",
+                               "",
+                               "http://beatniksoftware.com/tomboy/link";);
+    xml.write_attribute_string("xmlns",
+                               "size",
+                               "",
+                               "http://beatniksoftware.com/tomboy/size";);
 
     // Insert any active tags at start into tag_stack...
     Glib::SListHandle<Glib::RefPtr<const Gtk::TextTag> > tag_list = start.get_tags();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]