7#ifndef CORE_FXCRT_XML_CFX_XMLELEMENT_H_
8#define CORE_FXCRT_XML_CFX_XMLELEMENT_H_
12#include "core/fxcrt/widestring.h"
13#include "core/fxcrt/xml/cfx_xmlnode.h"
27 const WideString&
GetName()
const {
return name_; }
33 void SetAttribute(
const WideString& name,
const WideString& value);
47 WideString AttributeToString(
const WideString& name,
const WideString& value);
49 const WideString name_;
50 std::map<WideString, WideString> attrs_;
55 ?
static_cast<CFX_XMLElement*>(pNode)
61 ?
static_cast<
const CFX_XMLElement*>(pNode)
CFX_XMLElement * ToXMLElement(CFX_XMLNode *pNode)
const CFX_XMLElement * ToXMLElement(const CFX_XMLNode *pNode)
CFX_XMLElement * GetRoot() const
T * CreateNode(Args &&... args)
void AppendNodesFrom(CFX_XMLDocument *other)
void Save(const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
WideString GetNamespacePrefix() const
WideString GetTextData() const
const WideString & GetName() const
CFX_XMLNode * Clone(CFX_XMLDocument *doc) override
~CFX_XMLElement() override
CFX_XMLElement(const WideString &wsTag)
bool HasAttribute(const WideString &name) const
WideString GetLocalTagName() const
Type GetType() const override
WideString GetAttribute(const WideString &name) const
WideString GetNamespaceURI() const
void SetAttribute(const WideString &name, const WideString &value)
CFX_XMLElement * GetFirstChildNamed(WideStringView name) const
void RemoveAttribute(const WideString &name)
const std::map< WideString, WideString > & GetAttributes() const
CFX_XMLElement * GetNthChildNamed(WideStringView name, size_t idx) const
virtual Type GetType() const =0
static WideString FromASCII(ByteStringView str)
bool EqualsASCII(ByteStringView that) const