browserutilities/feedsengine/FeedsServer/XmlUtils/src/XmlUtils.cpp
changeset 65 5bfc169077b2
parent 37 cb62a4f66ebe
child 68 92a765b5b3e7
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
    13 *
    13 *
    14 * Description:  Misc. libxml2 related utilities.
    14 * Description:  Misc. libxml2 related utilities.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
       
    18 
       
    19 
    18 #include <charconv.h>
    20 #include <charconv.h>
    19 #include <EscapeUtils.h>
    21 #include <EscapeUtils.h>
    20 #include <utf.h>
    22 #include <utf.h>
    21 
    23 
    22 #include "CleanupLibXml2.h"  
    24 #include "CleanupLibXml2.h"  
    23 #include <leaktracker.h>
    25 #include "LeakTracker.h"
    24 #include "Logger.h"
    26 #include "Logger.h"
    25 #include <xmlencoding.h>
    27 #include "XmlEncoding.h"
    26 #include "XmlEntity.h"
    28 #include "XmlEntity.h"
    27 #include <xmlutils.h>
    29 #include "XmlUtils.h"
    28 
    30 
    29 // Local data-types
    31 // Local data-types
    30 struct ErrorContext
    32 struct ErrorContext
    31     {
    33     {
    32     TInt   error;
    34     TInt   error;
    33     TBool  retry;
    35     TBool  retry;
    34     };
    36     };
    35 
    37 
    36 // Static variables
    38 // Static variables
    37 static CXmlEntity*  sXmlEntity = NULL;
    39 static CXmlEntity*  sXmlEntity = NULL;
       
    40 
    38 
    41 
    39 // -----------------------------------------------------------------------------
    42 // -----------------------------------------------------------------------------
    40 // EntityResolverL
    43 // EntityResolverL
    41 //
    44 //
    42 // A local function to resolve entities found in the buffer being parsed. 
    45 // A local function to resolve entities found in the buffer being parsed.