String XmlNodeReader::GetAttribute(const CStrPtr& name) const { if (m_bEndElement || !m_cur) return nullptr; if (XmlAttributeCollection attrs = m_linkedNode.Attributes) { XmlAttribute a = attrs[name.c_str()]; return a ? a.Value : nullptr; } else return nullptr; }
String XmlTextReader::GetAttribute(const CStrPtr& name) const { return XmlString(xmlTextReaderGetAttribute(ToReader(m_p), BAD_CAST name.c_str())); }