|
From: Jimmy Z. <cra...@co...> - 2007-05-16 08:39:39
|
Give me some time to respond I think I have something defintely working =
on myside
----- Original Message -----=20
From: Harbhanu=20
To: cra...@co...=20
Cc: vtd...@li...=20
Sent: Wednesday, May 16, 2007 12:57 AM
Subject: RE: soap.c and soap2.xml
I am not sure whether I can. because of some restrictions on sending =
out direct code.
And the procedure for taking an approval is tedius and time =
consuming...
But there is not much difference as compared to the sample code..
I only did the modification for "fread" ..
When I execute the query "/". then I get the complete document in the =
out put file.
But for other queries. its empty..
Can you send me your working copy.. of the sample ';)
-------------------------------------------------------------------------=
-----
From: cra...@co... [mailto:cra...@co...]=20
Sent: Wednesday, May 16, 2007 2:50 PM
To: Harbhanu
Cc: vtd...@li...
Subject: RE: soap.c and soap2.xml
Can you send me the exact C file used for your project?
-------------- Original message --------------=20
From: Harbhanu <har...@hu...>=20
Yes..and it is empty.
Basically its not going inside the while loop ..
-------------------------------------------------------------------------=
---
From: Jimmy Zhang [mailto:cra...@co...]=20
Sent: Wednesday, May 16, 2007 12:02 PM
To: Harbhanu
Cc: vtd...@li...
Subject: Re: soap.c and soap2.xml
how do you know it is empty?
do you have an output file name out.txt??
----- Original Message -----=20
From: Harbhanu=20
To: 'Jimmy Zhang'=20
Cc: vtd...@li...=20
Sent: Tuesday, May 15, 2007 8:27 PM
Subject: RE: soap.c and soap2.xml
selectXPath(ap,L"/ns1:Envelope/ns1:Header/*[@ns1:mustUnderstand]")
Evaluation of this(in evalXpath) .returns an empty set..r u also =
getting an empty set..??
-------------------------------------------------------------------------=
-
From: Jimmy Zhang [mailto:cra...@co...]=20
Sent: Wednesday, May 16, 2007 11:14 AM
To: Harbhanu
Cc: vtd...@li...
Subject: Re: soap.c and soap2.xml
Well, yes, you have to call setDoc with the actuall content =
length...
when "r", VC replaces /r/n with /n so the file appears shorter...
What expression?=20
Is it =
declareXPathNameSpace(ap,L"ns1",Lhttp://www.w3.org/2003/05/soap-envelope)=
;?
I tried it and it worked for me...
----- Original Message -----=20
From: Harbhanu=20
To: 'Jimmy Zhang'=20
Cc: vtd...@li...=20
Sent: Tuesday, May 15, 2007 7:22 PM
Subject: RE: soap.c and soap2.xml
Yes.. now the exception is not there..after using any of the =
suggested solutions . ("rb' for binary mode)
What was the problem??? Was it regarding the legth mismatch =
between the actual length a the length passed..
Now, the evaluation is not correct.it works for the root =
selection..but when I execute the original expression . the result is =
empty...
Any clues??
Thanks for the prompt replies..expecting the similar level of =
activity n promptness in this mailing list!!
Regards,
Harbhanu
------------------------------------------------------------------------
From: Jimmy Zhang [mailto:cra...@co...]=20
Sent: Tuesday, May 15, 2007 3:58 PM
To: Harbhanu
Cc: vtd...@li...
Subject: Re: soap.c and soap2.xml
I think you should use __int64, to fix the parse exception there =
are
two ways, one is to fopen() the XML doc using the "ro" instead =
of "r,"
this is to treat the XML as binary data...
the other way is to assign i (an int) the return value of =
fread(),
so instead of "fread(...)," do "i=3Dfread(...)."
Either one should fix the problem...
----- Original Message -----=20
From: Harbhanu=20
To: 'Jimmy Zhang'=20
Cc: vtd...@li...=20
Sent: Monday, May 14, 2007 11:13 PM
Subject: RE: soap.c and soap2.xml
Hi,
Currently I am using Vtd-XML version 2.0.
I want to use it on windows..VC-6.
Even i think the problem must be pertaining to change of =
Long...but don't know the exact source.
When I use Long typedef as long...
Line Number: 14 Offset: 6
parse exception e =3D=3D> Parse exception in parse()
Ending tag error: Start/ending tag mismatch
When I use Long typedef as __int64..
Line Number: 47 Offset: 1
parse exception e =3D=3D> Parse exception in parse()
Other Error: XML not terminated properly
Did u do any change for long long in your code ??.. In my case =
it will result in compilation errors....
Please try after doing this change in your code.are you also =
getting similar problem or there is some configuration related issue.
Regards,
Harbhanu
----------------------------------------------------------------------
From: Jimmy Zhang [mailto:cra...@co...]=20
Sent: Tuesday, May 15, 2007 12:13 PM
To: har...@hu...
Cc: vtd...@li...
Subject: soap.c and soap2.xml
I tried the same code today and could not duplicate this =
issue. I am
using VC 2003... but that should not matter...
What version of VTD-XML are you using? Changing Long to long
will not work because a long is 32 bit, a Long is 64-bit...
can you make file on Linux?
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Hi,=20
I am trying to use the C version of VTD-XML.=20
=20
I tried executing the test program given (the SOAP example)... =
http://vtd-xml.sourceforge.net/codeSample/cs4.html [using =
soap.c soap2.xml]=20
=20
But i am getting this error....=20
=20
Line Number: 14 Offset: 6=20
parse exception e =3D=3D> Parse exception in parse()=20
Ending tag error: Start/ending tag mismatch=20
=20
I am using VC 6 on Win2k... =20
=20
When i tried compilig the project... i got this error =20
error C2632: 'long' followed by 'long' is illegal=20
=20
So.. i modified the typedef for Long to have only long...=20
Apart from this i didn't any other change ....=20
&nb sp;
Any clue about the problem....=20
=20
How should i solve the compilation error =20
=20
And if the change is correct... then what else can be the =
problem...=20
=20
In case someone has a working example ... please share it...=20
=20
Thanks !!=20
=20
Regards=20
|