MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlTextReaderMoveToElement

Function xmlTextReaderMoveToElement

ThirdParty/libxml2/vtklibxml2/xmlreader.c:2862–2875  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

2860 * Returns 1 in case of success, -1 in case of error, 0 if not moved
2861 */
2862int
2863xmlTextReaderMoveToElement(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:

Callers 1

xmlSchemaVReaderWalkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected