From: Ludovic M. <lmu...@ca...> - 2007-02-05 16:26:33
|
Hi,=20 Let's say i've got this XML file: <?xml version=3D'1=2E0' ?> <a> <b x=3D"y">100</b> <c> <d>200</d> </c> <c> <d>300</d> <d>400</d> </c> </a> Using this code, to retreve nodes works fine: if (selectXPath(ap,L"c")) { bind(ap,vn); while(evalXPath(ap)!=3D -1)=20 { l =3D getElementFragment(vn); offset =3D (int) l; len =3D (int) (l>>32); fwrite((char *)(xml+offset),sizeof(UByte),len,fo); fwrite((char *) sm,sizeof(UByte),strlen(sm),fo); }=20 } I get my two nodes, but if my xpath query becomes b/text() for exemple I= dont' get what I should=2E Other example if my xpath query is b\@x i don't get what I should What is the "normal" way to get correct return for all xpath query ? Should I test my query to use one code or another code ? I'll be glad if someone could send/tell me how to print, let's say= fprintf(stdout,"%ls",answerToMyQuery); the correct answer to all my xpath= queries=2E Tks This message contains information that may be privileged or confidential= and is the property of the Capgemini Group=2E It is intended only for the= person to whom it is addressed=2E If you are not the intended recipient, = you are not authorized to read, print, retain, copy, disseminate, = distribute, or use this message or any part thereof=2E If you receive this= message in error, please notify the sender immediately and delete all = copies of this message=2E |