* xmlParserFindNodeInfo: * @ctx: an XML parser context * @node: an XML node within the tree * * DEPRECATED: Don't use. * * Find the parser node info struct for a given node * * Returns an xmlParserNodeInfo block pointer or NULL */
| 2627 | * Returns an xmlParserNodeInfo block pointer or NULL |
| 2628 | */ |
| 2629 | const xmlParserNodeInfo * |
| 2630 | xmlParserFindNodeInfo(xmlParserCtxtPtr ctx, xmlNodePtr node) |
| 2631 | { |
| 2632 | unsigned long pos; |
| 2633 | |
| 2634 | if ((ctx == NULL) || (node == NULL)) |
| 2635 | return (NULL); |
| 2636 | /* Find position where node should be at */ |
| 2637 | pos = xmlParserFindNodeInfoIndex(&ctx->node_seq, node); |
| 2638 | if (pos < ctx->node_seq.length |
| 2639 | && ctx->node_seq.buffer[pos].node == node) |
| 2640 | return &ctx->node_seq.buffer[pos]; |
| 2641 | else |
| 2642 | return NULL; |
| 2643 | } |
| 2644 | |
| 2645 | |
| 2646 | /** |
no test coverage detected