コード例 #1
0
ファイル: xml-node-reader.cpp プロジェクト: Groestlcoin/el
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;
}
コード例 #2
0
ファイル: xml.cpp プロジェクト: coinhelper/coin
String XmlTextReader::GetAttribute(const CStrPtr& name) const {
	return XmlString(xmlTextReaderGetAttribute(ToReader(m_p), BAD_CAST name.c_str()));
}