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

Function xmlTextReaderExpand

ThirdParty/libxml2/vtklibxml2/xmlreader.c:1566–1577  ·  view source on GitHub ↗

* xmlTextReaderExpand: * @reader: the xmlTextReaderPtr used * * Reads the contents of the current node and the full subtree. It then makes * the subtree available until the next xmlTextReaderRead() call * * Returns a node pointer valid until the next xmlTextReaderRead() call * or NULL in case of error. */

Source from the content-addressed store, hash-verified

1564 * or NULL in case of error.
1565 */
1566xmlNodePtr
1567xmlTextReaderExpand(xmlTextReaderPtr reader) {
1568 if ((reader == NULL) || (reader->node == NULL))
1569 return(NULL);
1570 if (reader->doc != NULL)
1571 return(reader->node);
1572 if (reader->ctxt == NULL)
1573 return(NULL);
1574 if (xmlTextReaderDoExpand(reader) < 0)
1575 return(NULL);
1576 return(reader->node);
1577}
1578
1579/**
1580 * xmlTextReaderNext:

Callers 4

xmlTextReaderReadFunction · 0.85

Calls 1

xmlTextReaderDoExpandFunction · 0.85

Tested by

no test coverage detected