# | Line 74 | Line 74 | ezxml_t ezxml_child(ezxml_t xml, const char *name) | |
---|---|---|
74 | return xml; | |
75 | } | |
76 | ||
77 | + | /* returns the given tag's character content or empty string if none */ |
78 | + | char *ezxml_txt(ezxml_t xml) |
79 | + | { |
80 | + | if (xml == NULL) |
81 | + | return ""; |
82 | + | return xml->txt; |
83 | + | } |
84 | + | |
85 | /* returns the Nth tag with the same name in the same subsection or NULL if not */ | |
86 | /* found */ | |
87 | ezxml_t ezxml_idx(ezxml_t xml, int idx) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |