Re: [xml] Need help in xupdate



Dne Tuesday 05 July 2005 12:56 Arvind napsal(a):
Hi Petr
Please forward me that XML::XUpdate::LibXML xupdate library in perl binding
so that i could refer it to reimplement in c/c++ .

Arvind, 

here it is:

http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-XUpdate-LibXML-0.6.0.tar.gz

The relevant file is lib/XML/XUpdate/LibXML.pm. Unfortunately, there are not 
many comments, but the code is rather straightforward, so you'll get by. The 
package also contains a script 'xupdate' which provides a command-line 
interface.

You can refer to these pages if you need a description of LibXML modules and 
functions used throughout the code:

http://search.cpan.org/~phish/XML-LibXML-1.58/

and for the XPathContext module used:

http://search.cpan.org/~ilyam/XML-LibXML-XPathContext-0.06/XPathContext.pm

Good luck,

-- Petr

I searched for C/C++ library of xupdate in net.. but didn't found
anything...

Thanks
Arvind

----- Original Message -----
From: "Petr Pajas" <pajas ufal ms mff cuni cz>
To: <xml gnome org>
Cc: "Arvind" <arvindkumargupta greymatterindia com>
Sent: Sunday, July 03, 2005 2:47 PM
Subject: Re: [xml] Need help in xupdate

Dne Sunday 03 July 2005 10:23 Arvind napsal(a):
Hi...
I have to update xml file using xupdate....
I don't know which api or library we have to use in c, c++..
can anybody help me pls...

Thanks
Arvind

Arvind,
I don't know if there's a C/C++ library implementation over libxml2 (nor

any

other parser), but I've implemented XUpdate as a Perl module
XML::XUpdate::LibXML, which is based on the Perl bindings for libxml2.
The implementation was rather straightforward and I believe that if you
took

the

Perl code as a reference, then reimplementing it in C should not take
more than a few hours of coding (although it's worth mentioning that the
Perl bindings provide DOM Layer 3 API over libxml2 which makes the

reimplementing

a bit more complex than just converting the syntax).

HTH,
-- Petr

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]