! * Go to the next start or end element tag * If the end of the document is reached, an error is raised. * \return false if end of document reached, otherwise true */
| 115 | * \return false if end of document reached, otherwise true |
| 116 | */ |
| 117 | bool XmlStreamReader::skipToNextTag() { |
| 118 | if (atEnd()) { |
| 119 | raiseError(i18n("unexpected end of document")); |
| 120 | return false; |
| 121 | } |
| 122 | |
| 123 | do { |
| 124 | readNext(); |
| 125 | } while (!(isStartElement() || isEndElement() || atEnd())); |
| 126 | |
| 127 | if (atEnd()) { |
| 128 | raiseError(i18n("unexpected end of document")); |
| 129 | return false; |
| 130 | } |
| 131 | |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | /*! |
| 136 | * Go to the end element tag of the current element |
no outgoing calls
no test coverage detected