* xmlGetLastChild: * @parent: the parent node * * Find the last child of a node. * * Returns the last child or NULL if parent has no children. */
| 3443 | * Returns the last child or NULL if parent has no children. |
| 3444 | */ |
| 3445 | xmlNodePtr |
| 3446 | xmlGetLastChild(const xmlNode *parent) { |
| 3447 | if ((parent == NULL) || (parent->type == XML_NAMESPACE_DECL)) { |
| 3448 | return(NULL); |
| 3449 | } |
| 3450 | return(parent->last); |
| 3451 | } |
| 3452 | |
| 3453 | #ifdef LIBXML_TREE_ENABLED |
| 3454 | /* |