Simplified XPath functions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Makefile
README.md
example.com
ezXPath.c
ezcurl.c
main.c Created XpathQuery() Jul 31, 2017
sitemap.xml

README.md

ezXPath

Simplified functions for returning strings from html and xml hosted locally and online.

Also contains ezCurl for returning the source of a webpage to a string.

As this uses the libxml and curl libraries that requires the flags:

CFLAGS +=-c `xml2-config --cflags` `curl-config --cflags` -Wall

LIBS=`xml2-config --libs` `curl-config --libs`

Examples are in main.c and the functions are:

char *ezcurl(char *url)

int extern ezXPathXML(char *website,char *expr,char *output[])

int extern ezXPathXMLFile(char *file,char *expr,char *output[])

int extern ezXPathHTML(char *website,char *expr,char *output[])

int extern ezXPathHTMLFile(char *file,char *expr,char *output[])