[gxml/gsoc2013] BackedNode.vala: add a couple todo items to to_string
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gsoc2013] BackedNode.vala: add a couple todo items to to_string
- Date: Wed, 21 Aug 2013 19:41:06 +0000 (UTC)
commit 55c390d14e4ed27955225b82f59c1841286a1a40
Author: Richard Schwarting <aquarichy gmail com>
Date: Wed Aug 21 15:23:13 2013 -0400
BackedNode.vala: add a couple todo items to to_string
gxml/BackedNode.vala | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/gxml/BackedNode.vala b/gxml/BackedNode.vala
index 1ef5b8d..eb75926 100644
--- a/gxml/BackedNode.vala
+++ b/gxml/BackedNode.vala
@@ -296,6 +296,23 @@ namespace GXml {
}
public override string to_string (bool format = false, int level = 0) {
+ /* TODO: change from xmlNodeDump and xmlBuffer
+ * to xmlBuf and xmlBufNodeDump; the former
+ * are 'somehow deprecated' (see xmlNodeDump
+ * doc); however, it's unclear how to create
+ * an xmlBuf right now : \ */
+ /* TODO: Consider loading documents with
+ * xmlKeepBlanksDefault(0) that would cause a
+ * loaded document to lose all of its blank
+ * space (space between <> and a
+ * non-whitespace) when loaded, allowing us to
+ * use format with xmlNodeDump in cases where
+ * the document contains a Text (format is
+ * ignored if Text is contained). This is
+ * probably a bad idea; we probably want to
+ * retain the whitespace we load with, and
+ * instead we might need to find some other
+ * way to implement formatting well. */
Xml.Buffer *buffer;
string str;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]