void EnumXml(CMarkup& xml)
{
CString strTagName;
while(xml.FindElem())
{
strTagName = xml.GetTagName();
strTagName+=_T(" ");
OutputDebugString(strTagName);
int nAttributeIndex;
CString strAttribName;
CString strAttrib;
for(int nAttributeIndex=0;;nAttributeIndex++)
{
OutputDebugString(_T(" "));
strAttribName=xml.GetAttribName(nAttributeIndex);
if(strAttribName.GetLength()!=0)
{
OutputDebugString(strAttribName);
OutputDebugString(_T("="));
strAttrib=xml.GetAttrib(strAttribName);
OutputDebugString(strAttrib);
}
else
break;
};
CString strData = xml.GetData();
OutputDebugString(_T("Data = "));
OutputDebugString(_T("strData"));
OutputDebugString(_T("/n"));
if(xml.IntoElem())
{
EnumXml(xml);
xml.OutOfElem();
}
}
}