BOOL CRulerSettingsPage::EditXML() { CString strValue; CXMLElement* pXML = NULL; CXMLAttribute* pAttri = NULL; if ( pXML = m_pXML->GetElementByName( _T("BlackList"), TRUE ) ) { pXML->DeleteAllElements(); for ( int nItem = 0; nItem < m_wndExtList.GetCount(); nItem++ ) { m_wndExtList.GetLBText( nItem, strValue ); CXMLElement* pMap = pXML->AddElement( _T("Map") ); pMap->AddAttribute( _T("ID"), strValue ); } } return TRUE; }