| 541 | } |
| 542 | |
| 543 | char* xode_get_data(xode node) |
| 544 | { |
| 545 | xode cur; |
| 546 | |
| 547 | if(node == NULL) return NULL; |
| 548 | |
| 549 | if(xode_get_type(node) == XODE_TYPE_TAG) /* loop till we find a CDATA */ |
| 550 | { |
| 551 | for(cur = xode_get_firstchild(node); cur != NULL; cur = xode_get_nextsibling(cur)) |
| 552 | if(xode_get_type(cur) == XODE_TYPE_CDATA) |
| 553 | return cur->data; |
| 554 | }else{ |
| 555 | return node->data; |
| 556 | } |
| 557 | return NULL; |
| 558 | } |
| 559 | |
| 560 | int xode_get_datasz(xode node) |
| 561 | { |
no test coverage detected