* xmlXPathIsNodeType: * @name: a name string * * Is the name given a NodeType one. * * [38] NodeType ::= 'comment' * | 'text' * | 'processing-instruction' * | 'node' * * Returns 1 if true 0 otherwise */
| 9322 | * Returns 1 if true 0 otherwise |
| 9323 | */ |
| 9324 | int |
| 9325 | xmlXPathIsNodeType(const xmlChar *name) { |
| 9326 | if (name == NULL) |
| 9327 | return(0); |
| 9328 | |
| 9329 | if (xmlStrEqual(name, BAD_CAST "node")) |
| 9330 | return(1); |
| 9331 | if (xmlStrEqual(name, BAD_CAST "text")) |
| 9332 | return(1); |
| 9333 | if (xmlStrEqual(name, BAD_CAST "comment")) |
| 9334 | return(1); |
| 9335 | if (xmlStrEqual(name, BAD_CAST "processing-instruction")) |
| 9336 | return(1); |
| 9337 | return(0); |
| 9338 | } |
| 9339 | |
| 9340 | /** |
| 9341 | * xmlXPathCompFunctionCall: |
no test coverage detected