summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-04-10 14:16:48 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:24:13 +0200
commit7db9ce9d14ace08a2cbd92ddd79b3b359f8784e4 (patch)
treeca8558826b4212e2e9d5974a591063bff10efebc /src
parent4e01c2d54320595d56aa02b469b6a2bdd5064673 (diff)
handled special tokens in ontology serialization.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/xml/XmlOutput.cpp8
1 files changed, 4 insertions, 4 deletions
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<Element> transformTokenDescriptor(Handle<Element> parent,
return nullptr;
}
Rooted<Element> tag{new Element(P.mgr, parent, tagName)};
- std::string str;
+ Rooted<xml::Node> token;
if (descr.special) {
- // TODO: Handle this case
+ token = Rooted<Element>{
+ new Element(P.mgr, tag, Token::specialName(descr.id))};
} else {
- str = descr.token;
+ token = Rooted<Text>{new Text(P.mgr, tag, descr.token)};
}
- Rooted<Text> token{new Text(P.mgr, parent, str)};
tag->addChild(token);
return tag;
}