summaryrefslogtreecommitdiffstats
path: root/src/uscxml/Interpreter.cpp
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 17:33:14 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 17:33:14 (GMT)
commitef54f67ea9392616c4d51e3ed758a5a328fb9a40 (patch)
treeea70a8f8a3a1b13f9e94e9285997b11cc72483fc /src/uscxml/Interpreter.cpp
parenta1dd0a039f6579793bf5272898609b29f19a49c2 (diff)
downloaduscxml-ef54f67ea9392616c4d51e3ed758a5a328fb9a40.zip
uscxml-ef54f67ea9392616c4d51e3ed758a5a328fb9a40.tar.gz
uscxml-ef54f67ea9392616c4d51e3ed758a5a328fb9a40.tar.bz2
Fixed Interpreter::fromXML
Diffstat (limited to 'src/uscxml/Interpreter.cpp')
-rw-r--r--src/uscxml/Interpreter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/uscxml/Interpreter.cpp b/src/uscxml/Interpreter.cpp
index 93d152e..d5c8b7f 100644
--- a/src/uscxml/Interpreter.cpp
+++ b/src/uscxml/Interpreter.cpp
@@ -61,7 +61,9 @@ Interpreter* Interpreter::fromDOM(const Arabica::DOM::Node<std::string>& node) {
Interpreter* Interpreter::fromXML(const std::string& xml) {
std::istringstream is(xml);
+ is.seekg(0);
Arabica::SAX::InputSource<std::string> inputSource;
+ inputSource.setByteStream(is);
return fromInputSource(inputSource);
}