engine/src/OpmlParser.cpp
changeset 70 520291e28460
parent 35 66c5303f3610
child 76 223f270fa7ff
equal deleted inserted replaced
69:04c6ccce8e7e 70:520291e28460
    94 		// <body> <outline>
    94 		// <body> <outline>
    95 		
    95 		
    96 		if(str.CompareF(KTagOutline) == 0) {
    96 		if(str.CompareF(KTagOutline) == 0) {
    97 			iOpmlState = EStateOpmlOutline;
    97 			iOpmlState = EStateOpmlOutline;
    98 		}
    98 		}
    99 		break;
    99 		
       
   100 		// there are two variations on OPML, where the <outline> tags sit either
       
   101 		// directly below <body>, or inside a collective <body> <outline>
       
   102 		// by checking if the <body> <outline> has arguments, we can support both
       
   103 		// by falling through to the nextstate
       
   104 		if (aAttributes.Count() == 0)
       
   105 			{
       
   106 			break;
       
   107 			}
   100 	case EStateOpmlOutline:
   108 	case EStateOpmlOutline:
   101 		// <body> <outline> <outline...
   109 		// <body> <outline> <outline...
   102 		if(str.CompareF(KTagOutline) == 0) {
   110 		if(str.CompareF(KTagOutline) == 0) {
   103 			iOpmlState=EStateOpmlOutlineOutline;
   111 			iOpmlState=EStateOpmlOutlineOutline;
   104 			CFeedInfo* newFeed = CFeedInfo::NewLC();
   112 			CFeedInfo* newFeed = CFeedInfo::NewLC();