In article <dM***************@newsread1.news.pas.earthlink.ne t>,
Mike Wahler <mk******@mkwahler.net> wrote:
I would like to use XPATH in a C program to retrieve values from XML
documents.
XPATH is a language created specifically to perform this
task. Why do you want to try to combine it with C?
Presumably he wants to retrieve XML nodes using XPaths and then
process them in C.
This presupposes the use of some representation of XML nodes as C
structures, probably produced by a parser.
There are several libraries that can do this (I have one myself which
I have not yet had time to tidy up and release). Look at libxml
(
http://xmlsoft.org/) or Xalan-C++ (
http://xml.apache.org/xalan-c/).
I'm not sure whether the latter can be easily used in C.
-- Richard