Ejemplo n.º 1
0
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;
}
Ejemplo n.º 2
0
String XmlTextReader::GetAttribute(const CStrPtr& name) const {
	return XmlString(xmlTextReaderGetAttribute(ToReader(m_p), BAD_CAST name.c_str()));
}