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

Function xmlTextReaderCurrentNode

ThirdParty/libxml2/vtklibxml2/xmlreader.c:3944–3952  ·  view source on GitHub ↗

* xmlTextReaderCurrentNode: * @reader: the xmlTextReaderPtr used * * Hacking interface allowing to get the xmlNodePtr corresponding to the * current node being accessed by the xmlTextReader. This is dangerous * because the underlying node may be destroyed on the next Reads. * * Returns the xmlNodePtr or NULL in case of error. */

Source from the content-addressed store, hash-verified

3942 * Returns the xmlNodePtr or NULL in case of error.
3943 */
3944xmlNodePtr
3945xmlTextReaderCurrentNode(xmlTextReaderPtr reader) {
3946 if (reader == NULL)
3947 return(NULL);
3948
3949 if (reader->curnode != NULL)
3950 return(reader->curnode);
3951 return(reader->node);
3952}
3953
3954/**
3955 * xmlTextReaderPreserve:

Callers 2

processNodeFunction · 0.85
patternNodeFunction · 0.85

Calls

no outgoing calls

Tested by 1

patternNodeFunction · 0.68