* xmlTextReaderMoveToElement: * @reader: the xmlTextReaderPtr used * * Moves the position of the current instance to the node that * contains the current Attribute node. * * Returns 1 in case of success, -1 in case of error, 0 if not moved */
| 2860 | * Returns 1 in case of success, -1 in case of error, 0 if not moved |
| 2861 | */ |
| 2862 | int |
| 2863 | xmlTextReaderMoveToElement(xmlTextReaderPtr reader) { |
| 2864 | if (reader == NULL) |
| 2865 | return(-1); |
| 2866 | if (reader->node == NULL) |
| 2867 | return(-1); |
| 2868 | if (reader->node->type != XML_ELEMENT_NODE) |
| 2869 | return(0); |
| 2870 | if (reader->curnode != NULL) { |
| 2871 | reader->curnode = NULL; |
| 2872 | return(1); |
| 2873 | } |
| 2874 | return(0); |
| 2875 | } |
| 2876 | |
| 2877 | /** |
| 2878 | * xmlTextReaderReadAttributeValue: |
no outgoing calls
no test coverage detected