* xmlTextReaderGetSuccessor: * @cur: the current node * * Get the successor of a node if available. * * Returns the successor node or NULL */
| 1135 | * Returns the successor node or NULL |
| 1136 | */ |
| 1137 | static xmlNodePtr |
| 1138 | xmlTextReaderGetSuccessor(xmlNodePtr cur) { |
| 1139 | if (cur == NULL) return(NULL) ; /* ERROR */ |
| 1140 | if (cur->next != NULL) return(cur->next) ; |
| 1141 | do { |
| 1142 | cur = cur->parent; |
| 1143 | if (cur == NULL) break; |
| 1144 | if (cur->next != NULL) return(cur->next); |
| 1145 | } while (cur != NULL); |
| 1146 | return(cur); |
| 1147 | } |
| 1148 | |
| 1149 | /** |
| 1150 | * xmlTextReaderDoExpand: |
no outgoing calls
no test coverage detected