mmappcomponents/asxparser/src/asxparser.cpp
changeset 25 d881023c13eb
parent 20 b1fb57be53fe
child 27 cbb1bfb7ebfb
equal deleted inserted replaced
21:a05c44bc3c61 25:d881023c13eb
    13 *
    13 *
    14 * Description:  Simple v2/v3 ASX-fileparser
    14 * Description:  Simple v2/v3 ASX-fileparser
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 10.1.5 %
    18 // Version : %version: 10.1.5.1.1 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
    23 #include <e32base.h>
    23 #include <e32base.h>
   297                             }
   297                             }
   298                         }
   298                         }
   299                         CleanupStack::PopAndDestroy(); //attributeList
   299                         CleanupStack::PopAndDestroy(); //attributeList
   300                     }
   300                     }
   301 	            
   301 	            
   302 	                while( nodelist2.HasNext() )
   302                     TBool urlIsSet = EFalse;
       
   303 	                while( !urlIsSet && nodelist2.HasNext() )
   303 	                {
   304 	                {
   304 	                    element = nodelist2.Next();
   305 	                    element = nodelist2.Next();
   305 
   306 
   306 	                    if ( ! element.IsNull() )
   307 	                    if ( ! element.IsNull() )
   307 	                    {
   308 	                    {
   324 	                                if ( ! attr.Name().CompareF(KHRef) )
   325 	                                if ( ! attr.Name().CompareF(KHRef) )
   325 	                                {
   326 	                                {
   326 	                                    TPtrC8 attrData = attr.Value();
   327 	                                    TPtrC8 attrData = attr.Value();
   327 	                                    asxItem->url = attrData.AllocL();
   328 	                                    asxItem->url = attrData.AllocL();
   328 	                                    iAsxArray.Append(asxItem);
   329 	                                    iAsxArray.Append(asxItem);
       
   330 	                                    urlIsSet = ETrue;
       
   331 	                                    break;
   329 	                                }
   332 	                                }
   330 	                            }
   333 	                            }
   331 
   334 
   332 	                            CleanupStack::PopAndDestroy(); //attributeList
   335 	                            CleanupStack::PopAndDestroy(); //attributeList
   333 	                        }
   336 	                        }