* xmlTextReaderConstBaseUri: * @reader: the xmlTextReaderPtr used * * The base URI of the node. * * Returns the base URI or NULL if not available, the string * will be deallocated with the reader */
| 3457 | * will be deallocated with the reader |
| 3458 | */ |
| 3459 | const xmlChar * |
| 3460 | xmlTextReaderConstBaseUri(xmlTextReaderPtr reader) { |
| 3461 | xmlChar *tmp; |
| 3462 | const xmlChar *ret; |
| 3463 | int result; |
| 3464 | |
| 3465 | if ((reader == NULL) || (reader->node == NULL)) |
| 3466 | return(NULL); |
| 3467 | result = xmlNodeGetBaseSafe(NULL, reader->node, &tmp); |
| 3468 | if (result < 0) |
| 3469 | xmlTextReaderErrMemory(reader); |
| 3470 | if (tmp == NULL) |
| 3471 | return(NULL); |
| 3472 | ret = constString(reader, tmp); |
| 3473 | xmlFree(tmp); |
| 3474 | return(ret); |
| 3475 | } |
| 3476 | |
| 3477 | /** |
| 3478 | * xmlTextReaderDepth: |
nothing calls this directly
no test coverage detected