Changeset 150 for trunk


Ignore:
Timestamp:
May 22, 2008, 2:39:44 PM (11 years ago)
Author:
ksherdy
Message:

Include 'fgSAX2CoreNameSpacePrefixes' flag to report namespace prefixes with qnames.

Location:
trunk/PerfTest/xerces_markup_stats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerfTest/xerces_markup_stats/markup_stats_handlers.cpp

    r144 r150  
    5959       
    6060        #if defined(CALC_AVG)
    61        
    62                 start_tag_length += XMLString::stringLen(localname);
    63        
     61                start_tag_length += XMLString::stringLen(qname);
    6462        #endif
    6563       
  • trunk/PerfTest/xerces_markup_stats/xerces_markup_stats.cpp

    r145 r150  
    1010
    1111#ifndef REPEAT_RUNS
    12 #define REPEAT_RUNS 3
     12#define REPEAT_RUNS 1
    1313#endif
    1414
     
    9595   
    9696    // Do not perform Namespace processing.
    97     parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, false);
     97    parser->setFeature(XMLUni::fgSAX2CoreNameSpacePrefixes, true);
     98    parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true);
    9899
    99100    MarkupStats* defaultHandler = new MarkupStats();
Note: See TracChangeset for help on using the changeset viewer.