shithub: xml-9atom

ref: 4e09200f7e4bf8791c9c720922734e0759206b72
dir: /xpath.h/

View raw version
#pragma lib "libxpath.a"

enum {
	Xelem = 1,
	Xstring = 2,
	Xnum = 3,
};

typedef struct XpResult XpResult;
struct XpResult {
	int type;
	int error;
	int size;
	int num;
	union {
		char **strings;
		Elem **elems;
		int *numbers;
	};
};

XpResult 	xmllookpath(Elem *, char *);
void     	xmlfreeresult(XpResult *);