XPATH implementation in C

L

Locusta

Hello,

I would like to use XPATH in a C program to retrieve values from XML
documents. Did anyone tried this and can give me some advice?

Cheers,
Locusta
 
M

Mike Wahler

Locusta said:
Hello,

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?
Did anyone tried this and can give me some advice?

If I wanted to use XPATH, I'd just use it. I'd start
here: http://www.w3schools.com/xpath/default.asp

Perhaps you want to make a C program that generates
XPATH code. That's very doable. The above link will
teach the XPATH grammar, syntax, etc.

If you need help with (standard) C, we can help.
For help with XPATH, you'll need to look elsewhere.
www.groups.google.com can help with locating
newsgroups on particular topics.

Purpose of comp.lang.c:
http://www.ungerhu.com/jxh/clc.welcome.txt

C FAQ:
http://www.eskimo.com/~scs/C-faq/top.html

-Mike
 
R

Richard Tobin

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?[/QUOTE]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,173
Messages
2,570,938
Members
47,475
Latest member
NovellaSce

Latest Threads

Top