summaryrefslogtreecommitdiffstats
path: root/src/xml/simple-document.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2008-03-07 22:18:56 +0000
committermental <mental@users.sourceforge.net>2008-03-07 22:18:56 +0000
commit31acc450aa0320ab82f5075adf8afbcae0763e6d (patch)
treeef45a9eeb5a7baa754176307396a2837bca879e0 /src/xml/simple-document.cpp
parentFix #include (diff)
downloadinkscape-31acc450aa0320ab82f5075adf8afbcae0763e6d.tar.gz
inkscape-31acc450aa0320ab82f5075adf8afbcae0763e6d.zip
add basic support for preserving processing instructions in the AST
(bzr r4987)
Diffstat (limited to 'src/xml/simple-document.cpp')
-rw-r--r--src/xml/simple-document.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xml/simple-document.cpp b/src/xml/simple-document.cpp
index 30e74a455..d0aa31939 100644
--- a/src/xml/simple-document.cpp
+++ b/src/xml/simple-document.cpp
@@ -19,6 +19,7 @@
#include "xml/element-node.h"
#include "xml/text-node.h"
#include "xml/comment-node.h"
+#include "xml/pi-node.h"
namespace Inkscape {
@@ -65,6 +66,10 @@ Node *SimpleDocument::createComment(char const *content) {
return new CommentNode(Util::share_string(content));
}
+Node *SimpleDocument::createPI(char const *target, char const *content) {
+ return new PINode(g_quark_from_string(target), Util::share_string(content));
+}
+
void SimpleDocument::notifyChildAdded(Node &parent,
Node &child,
Node *prev)