| 39 | |
| 40 | |
| 41 | bool NamespaceSupport::declarePrefix(const XMLString& prefix, const XMLString& namespaceURI) |
| 42 | { |
| 43 | poco_assert (_contexts.size() > 0); |
| 44 | |
| 45 | Context& ctx = _contexts.back(); |
| 46 | if (ctx.find(prefix) == ctx.end()) |
| 47 | { |
| 48 | ctx.insert(Context::value_type(prefix, namespaceURI)); |
| 49 | return true; |
| 50 | } |
| 51 | else return false; |
| 52 | } |
| 53 | |
| 54 | |
| 55 | bool NamespaceSupport::undeclarePrefix(const XMLString& prefix) |
no test coverage detected