KnowHowLangs
(Unterschied zwischen Versionen)
(→Snippets) |
(→Snippets) |
||
| Zeile 12: | Zeile 12: | ||
=== Foren === | === Foren === | ||
=== Snippets === | === Snippets === | ||
| - | < | + | <pre class='console'> |
CString CXmlNodeList::GetAttribute( int iItem, LPCTSTR strAttributeName ) | CString CXmlNodeList::GetAttribute( int iItem, LPCTSTR strAttributeName ) | ||
{ | { | ||
| Zeile 22: | Zeile 22: | ||
return CString( _T("") ); | return CString( _T("") ); | ||
} | } | ||
| - | </ | + | </pre> |
== PHP == | == PHP == | ||
Version vom 09:05, 14. Sep. 2009
Inhaltsverzeichnis |
C++
Referenzen
Tutorials
FAQs
Foren
Snippets
CString CXmlNodeList::GetAttribute( int iItem, LPCTSTR strAttributeName )
{
CXmlElementPtr pElement = m_pNodeList->Getitem( iItem );
VARIANT varValue = pElement->getAttribute( _bstr_t( strAttributeName ) );
if( varValue.bstrVal != NULL )
return CString( varValue );
else
return CString( _T("") );
}