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