anchor.diff:      DATA lv_line TYPE string.
   
       "unclosed tag
  -    lv_line = '<ns:tag ns:a1="v1"'.                                     "#EC NOTEXT
  -
  -    " Generate table with expected values after parsing
  -    _generate_parse 'X' 0  1.
  -    _generate_parse 'A' 7  6.
  -    _generate_parse 'V' 14 4.
  -
  -    " Generate table with expected values after ordering
  -    _generate_order 'X' 0  7 '<'.
  -    _generate_order 'A' 7  6 ''.
  -    _generate_order 'V' 14 4 ''.
  -
  -    " Generate table with expected values after extending
  -    _generate_extend 'X' 0  7 '<'.
  -    _generate_extend 'A' 7  6 ''.
  -    _generate_extend '.' 13 1 ''.
  -    _generate_extend 'V' 14 4 ''.
  +    lv_line = '<ns:tag ns:a1="v1"'.                         "#EC NOTEXT
  +
  +    " Generate table with expected values after parsing
  +    generate_parse( iv_token  = 'X'
  +                    iv_offset = 0
  +                    iv_length = 1 ).
  +    generate_parse( iv_token  = 'A'
  +                    iv_offset = 7
  +                    iv_length = 6 ).
  +    generate_parse( iv_token  = 'V'
  +                    iv_offset = 14
  +                    iv_length = 4 ).
  +
  +    " Generate table with expected values after ordering
  +    generate_order( iv_token    = 'X'
  +                    iv_offset   = 0
  +                    iv_length   = 7
  +                    iv_text_tag = '<' ).
  +    generate_order( iv_token    = 'A'
  +                    iv_offset   = 7
  +                    iv_length   = 6
  +                    iv_text_tag = '' ).
  +    generate_order( iv_token    = 'V'
  +                    iv_offset   = 14
  +                    iv_length   = 4
  +                    iv_text_tag = '' ).
  +
  +    " Generate table with expected values after extending
  +    generate_extend( iv_token    = 'X'
  +                     iv_offset   = 0
  +                     iv_length   = 7
  +                     iv_text_tag = '<' ).
  +    generate_extend( iv_token    = 'A'
  +                     iv_offset   = 7
  +                     iv_length   = 6
  +                     iv_text_tag = '' ).
  +    generate_extend( iv_token    = '.'
  +                     iv_offset   = 13
  +                     iv_length   = 1
  +                     iv_text_tag = '' ).
  +    generate_extend( iv_token    = 'V'
  +                     iv_offset   = 14
  +                     iv_length   = 4
  +                     iv_text_tag = '' ).
   
       do_test( iv_line = lv_line iv_filename = '*.xml' ).
     ENDMETHOD.
  
positive.code: 
    ENDMETHOD.
  
  ******************************************************
  * Test parsing and ordering of comments              *
  ******************************************************
  
negative.code:     lv_line = '<tag>Text</tag>'.                            "#EC NOTEXT
  
      " Generate table with expected values after parsing
      generate_parse( iv_token  = 'X'
                      iv_offset = 0
                      iv_length = 1 ).
      generate_parse( iv_token  = 'X'
                      iv_offset = 4
                      iv_length = 1 ).
      generate_parse( iv_token  = 'X'
                      iv_offset = 9
                      iv_length = 1 ).
      generate_parse( iv_token  = 'X'
                      iv_offset = 14
                      iv_length = 1 ).
  
      " Generate table with expected values after ordering
  
      generate_order( iv_token    = 'X'
                      iv_offset   = 0
                      iv_length   = 5
                      iv_text_tag = '<' ).
      generate_order( iv_token    = 'X'
                      iv_offset   = 9
                      iv_length   = 6
                      iv_text_tag = '<' ).
  
      " Generate table with expected values after extending
      generate_extend( iv_token    = 'X'
                       iv_offset   = 0
                       iv_length   = 5
                       iv_text_tag = '<' ).
      generate_extend( iv_token    = '.'
                       iv_offset   = 5
                       iv_length   = 4
                       iv_text_tag = '' ).
      generate_extend( iv_token    = 'X'
                       iv_offset   = 9
                       iv_length   = 6
                       iv_text_tag = '<' ).
  
      do_test( iv_line = lv_line iv_filename = '*.xml' ).
  
  