shithub: xml-9atom

ref: f1e559d47916b74f473153a0a04df6956ca4052b
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 *);