From 7db9ce9d14ace08a2cbd92ddd79b3b359f8784e4 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 10 Apr 2015 14:16:48 +0200 Subject: handled special tokens in ontology serialization. --- src/plugins/xml/XmlOutput.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/plugins/xml/XmlOutput.cpp b/src/plugins/xml/XmlOutput.cpp index 1a7ea2a..516fc22 100644 --- a/src/plugins/xml/XmlOutput.cpp +++ b/src/plugins/xml/XmlOutput.cpp @@ -250,13 +250,13 @@ static Rooted transformTokenDescriptor(Handle parent, return nullptr; } Rooted tag{new Element(P.mgr, parent, tagName)}; - std::string str; + Rooted token; if (descr.special) { - // TODO: Handle this case + token = Rooted{ + new Element(P.mgr, tag, Token::specialName(descr.id))}; } else { - str = descr.token; + token = Rooted{new Text(P.mgr, tag, descr.token)}; } - Rooted token{new Text(P.mgr, parent, str)}; tag->addChild(token); return tag; } -- cgit v1.2.3