123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef XMLSELECT_SOURCE
- #define XMLSELECT_SOURCE
- #include <string.h>
- #include "../nodes/node.h"
- char const * xmlselect (struct node const * node, char const * element, char const * attribute)
- {
- node = xmlelement (node, element);
- if ((attribute) && (* attribute))
- {
- node = xmlattribute (node, attribute);
- node = xmlvalue (node);
- }
- else
- {
- node = xmldata (node);
- }
- return (node? node->text: "");
- }
- #endif
|