Re: [xml] Error in the Tutorial



Thanks, I'll fix that.

Cheers,
John

On Tue, 2004-05-25 at 13:14, Michael Masson wrote:
Hallo

At the Tutorial for libxml2 is a error in the source code.  The error is in 
the XPath example on Line 35. See the compiler message

xpath_example.c: In function `int main(int, char**)':
xpath_example.c:35: error: invalid conversion from `const char*' to `xmlChar*

the line lock 

xmlChar *xpath = ("//keyword");

but it must lock

xmlChar *xpath = xmlCharStrdup("//keyword");


best regards

m.masson
_______________________________________________
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]