* xmlNodeGetBase: * @doc: the document the node pertains to * @cur: the node being checked * * See xmlNodeGetBaseSafe. This function doesn't allow to distinguish * memory allocation failures from a non-existing base. * * Returns a pointer to the base URL, or NULL if not found * It's up to the caller to free the memory with xmlFree(). */
| 5494 | * It's up to the caller to free the memory with xmlFree(). |
| 5495 | */ |
| 5496 | xmlChar * |
| 5497 | xmlNodeGetBase(const xmlDoc *doc, const xmlNode *cur) { |
| 5498 | xmlChar *base; |
| 5499 | |
| 5500 | xmlNodeGetBaseSafe(doc, cur, &base); |
| 5501 | return(base); |
| 5502 | } |
| 5503 | |
| 5504 | /** |
| 5505 | * xmlNodeBufGetContent: |
no test coverage detected