* xmlGetNsList: * @doc: the document * @node: the current node * * Find all in-scope namespaces of a node. * * Use xmlGetNsListSafe for better error reporting. * * Returns a NULL terminated array of namespace pointers that must * be freed by the caller or NULL if no namespaces were found or * a memory allocation failed. */
| 5976 | * a memory allocation failed. |
| 5977 | */ |
| 5978 | xmlNsPtr * |
| 5979 | xmlGetNsList(const xmlDoc *doc, const xmlNode *node) |
| 5980 | { |
| 5981 | xmlNsPtr *ret; |
| 5982 | |
| 5983 | xmlGetNsListSafe(doc, node, &ret); |
| 5984 | return(ret); |
| 5985 | } |
| 5986 | #endif /* LIBXML_TREE_ENABLED */ |
| 5987 | |
| 5988 | static xmlNsPtr |
no test coverage detected