From 31acc450aa0320ab82f5075adf8afbcae0763e6d Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Fri, 7 Mar 2008 22:18:56 +0000 Subject: add basic support for preserving processing instructions in the AST (bzr r4987) --- src/xml/simple-document.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/xml/simple-document.cpp') 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) -- cgit v1.2.3