summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/xml')
-rw-r--r--core/fxcrt/xml/cxml_element.cpp10
-rw-r--r--core/fxcrt/xml/cxml_element.h2
2 files changed, 3 insertions, 9 deletions
diff --git a/core/fxcrt/xml/cxml_element.cpp b/core/fxcrt/xml/cxml_element.cpp
index ee51004b2c..9d3e22c8f9 100644
--- a/core/fxcrt/xml/cxml_element.cpp
+++ b/core/fxcrt/xml/cxml_element.cpp
@@ -33,14 +33,8 @@ const CXML_Element* CXML_Element::AsElement() const {
return this;
}
-ByteString CXML_Element::GetTagName(bool bQualified) const {
- if (!bQualified || m_QSpaceName.IsEmpty()) {
- return m_TagName;
- }
- ByteString bsTag = m_QSpaceName;
- bsTag += ":";
- bsTag += m_TagName;
- return bsTag;
+ByteString CXML_Element::GetTagName() const {
+ return m_TagName;
}
ByteString CXML_Element::GetNamespaceURI(const ByteString& qName) const {
diff --git a/core/fxcrt/xml/cxml_element.h b/core/fxcrt/xml/cxml_element.h
index 220eb7bcad..5c4d24d661 100644
--- a/core/fxcrt/xml/cxml_element.h
+++ b/core/fxcrt/xml/cxml_element.h
@@ -27,7 +27,7 @@ class CXML_Element : public CXML_Object {
CXML_Element* AsElement() override;
const CXML_Element* AsElement() const override;
- ByteString GetTagName(bool bQualified = false) const;
+ ByteString GetTagName() const;
ByteString GetNamespaceURI(const ByteString& qName) const;
const CXML_Element* GetParent() const { return m_pParent.Get(); }
uint32_t CountAttrs() const { return m_AttrMap.GetSize(); }