ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/ezxml.c
(Generate patch)

Comparing ray/src/common/ezxml.c (file contents):
Revision 2.7 by greg, Sat Feb 14 00:34:43 2015 UTC vs.
Revision 2.8 by greg, Thu Apr 2 16:40:32 2015 UTC

# 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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines