Ignore:
Timestamp:
Jan 12, 2013, 12:21:29 PM (6 years ago)
Author:
cameron
Message:

Fixes default attribute+namespace resolution; hashing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icXML/icXML-devel/src/icxercesc/internal/XMLScanner.cpp

    r2774 r2807  
    940940// --------------------------------------------------------------------------------------------------------
    941941
    942 //  Scans a PI and calls the appropriate callbacks. At entry we have just
    943 //  scanned the <? part, and need to now start on the PI target name.
    944 void XMLScanner::handlePI
    945 (
    946     const XMLCh   * const     target
    947         , const XMLCh     *       data
    948         , const XMLSize_t
    949 )
    950 {
    951         // If we have a handler, then call it
    952         if (fDocHandler)
    953         {
    954         fDocHandler->docPI(target, data);
    955         }
    956 
    957         //mark PI is seen within the current element
    958         if (!fElemStack.isEmpty())
    959         {
    960                 fElemStack.setCommentOrPISeen();
    961         }
    962 }
    963 
    964 // --------------------------------------------------------------------------------------------------------
    965 
    966 void XMLScanner::handleComment
    967 (
    968         const XMLCh       * comment
    969         , const XMLSize_t
    970 )
    971 {
    972          // If we have an available handler, call back with the comment.
    973         if (fDocHandler)
    974         {
    975                 fDocHandler->docComment(comment);
    976         }
    977 
    978         //mark comment is seen within the current element
    979         if (!fElemStack.isEmpty())
    980         {
    981                 fElemStack.setCommentOrPISeen();
    982         }
    983 }
    984 
    985 // --------------------------------------------------------------------------------------------------------
    986 
    987 void XMLScanner::handleCDATA
    988 (
    989         const XMLCh       * cdata
    990         , const XMLSize_t   length
    991 )
    992 {
    993         if (fDocHandler)
    994         {
    995                 fDocHandler->docCharacters(cdata, length, true);
    996         }
    997 }
    998 
    999 // --------------------------------------------------------------------------------------------------------
    1000 
    1001 void XMLScanner::handleIgnorableWhitespace
    1002 (
    1003         const XMLCh       * whitespace
    1004         , const XMLSize_t   length
    1005 )
    1006 {
    1007         if (fDocHandler)
    1008         {
    1009                 fDocHandler->ignorableWhitespace
    1010                 (
    1011                         whitespace
    1012                         , length
    1013                         , false
    1014                 );
    1015         }
    1016 }
    1017 
    1018 // --------------------------------------------------------------------------------------------------------
    1019 
    1020942//  Scans the <?xml .... ?> line. This stuff is all sequential so we don't
    1021943//  do any state machine loop here. We just bull straight through it. It ends
Note: See TracChangeset for help on using the changeset viewer.