MCPcopy Create free account
hub / github.com/RetroShare/RetroShare / node

Method node

plugins/FeedReader/util/XPathWrapper.cpp:99–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99xmlNodePtr XPathWrapper::node(unsigned int index)
100{
101 if (!mResult) {
102 return NULL;
103 }
104
105 if (mResult->type != XPATH_NODESET) {
106 return NULL;
107 }
108
109 if (xmlXPathNodeSetIsEmpty(mResult->nodesetval)) {
110 return NULL;
111 }
112
113 if (index >= (unsigned int) mResult->nodesetval->nodeNr) {
114 return NULL;
115 }
116
117 return mResult->nodesetval->nodeTab[index];
118}

Callers 2

processMsgMethod · 0.80
processXPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected