Summary | No prefixed xml namespace |
Queue | gloox |
Queue Version | 1.0.21 |
Type | Bug |
State | Unconfirmed |
Priority | 1. Low |
Owners | |
Requester | drizt72 (at) zoho (dot) eu |
Created | 07/31/2018 (1775 days ago) |
Due | |
Updated | 08/01/2018 (1774 days ago) |
Assigned | |
Resolved |
namespaces, use setXmlns() instead". But in such case addAttribute
doesn't handle with incorrect attribute name. This looks like a bug.
So addAttribute should doesn't make a new attribute with "xmlns" or
"xmlns.*" name and return false or handle case when user tries use
this function to add a new namespaces.
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ No prefixed xml namespace
Queue ⇒ gloox
added with addAttribute function. Here code to reproduce
Tag *tag = new Tag("t");
tag->addAttribute("xmlns", "def/namespace");
tag->addAttribute("xmlns:p", "pref/namespace");
printf("xml: %s\n", tag->xml().c_str());
printf("default ns: %s\n", tag->xmlns().c_str());
printf("prefixed ns: %s\n", tag->xmlns("p").c_str());
Output:
xml: <t xmlns='def/namespace' xmlns:p='pref/namespace'/>
default ns: def/namespace
prefixed ns: