We came from state 1 and just read '<' If currChar == '/' -> state 11 If is a char != white spaces -> state 3 stay in state 2 while there are only white spaces
(char currChar)
| 144 | stay in state 2 while there are only white spaces |
| 145 | */ |
| 146 | private void doState2(char currChar){ |
| 147 | if ('/' == currChar){ |
| 148 | // go to state 11 |
| 149 | m_currState = 11; |
| 150 | } |
| 151 | // if currChar is a char != white spaces then go to state 3 |
| 152 | if (('/' != m_currChar) && !isWhiteSpace(m_currChar)){ |
| 153 | // save the position where starts the element's name |
| 154 | // we need that in order to be able to read the current tag name |
| 155 | // this name it will be read from m_modifier using the substring() method |
| 156 | elemNameStart = m_cursor -1; |
| 157 | // go to state 3 |
| 158 | m_currState = 3; |
| 159 | } |
| 160 | }// doState2 |
| 161 | |
| 162 | /** |
| 163 | * Just read the first char from the element's name and now analize the next |