diff options
Diffstat (limited to 'src/uscxml/Interpreter.h')
-rw-r--r-- | src/uscxml/Interpreter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uscxml/Interpreter.h b/src/uscxml/Interpreter.h index eaedeb1..ac26457 100644 --- a/src/uscxml/Interpreter.h +++ b/src/uscxml/Interpreter.h @@ -190,8 +190,8 @@ public: return _nsContext; } std::string getXMLPrefixForNS(const std::string& ns) { - if (_nsToPrefix.find(ns) != _nsToPrefix.end()) - return _nsToPrefix[ns] + ":"; + if (_nameSpaceInfo.find(ns) != _nameSpaceInfo.end() && _nameSpaceInfo[ns].size()) + return _nameSpaceInfo[ns] + ":"; return ""; } void setNameSpaceInfo(const std::map<std::string, std::string> nameSpaceInfo); |