You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/11/21 05:09:02 UTC
svn commit: r345823 -
/webservices/axis2/trunk/c/modules/xml/parser/guththila/test/guththila_test.c
Author: samisa
Date: Sun Nov 20 20:08:58 2005
New Revision: 345823
URL: http://svn.apache.org/viewcvs?rev=345823&view=rev
Log:
test updated
Modified:
webservices/axis2/trunk/c/modules/xml/parser/guththila/test/guththila_test.c
Modified: webservices/axis2/trunk/c/modules/xml/parser/guththila/test/guththila_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/parser/guththila/test/guththila_test.c?rev=345823&r1=345822&r2=345823&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/parser/guththila/test/guththila_test.c (original)
+++ webservices/axis2/trunk/c/modules/xml/parser/guththila/test/guththila_test.c Sun Nov 20 20:08:58 2005
@@ -9,7 +9,6 @@
int read_input(char *buffer,int size)
{
-
return fread(buffer,sizeof(char), size, f);
}
@@ -36,6 +35,7 @@
char *p =0;
int token = 0;
char *filename = "test.xml";
+ f= fopen("test.xml","r");
if(argc > 1)
filename = argv[1];
@@ -43,7 +43,8 @@
env = guththila_environment_create(allocator,NULL,NULL);
reader = guththila_reader_create_for_file(env,filename);
- parser = guththila_xml_pull_parser_create(env,reader);
+ reader_mem = guththila_reader_create_for_memory(env, read_input, close_input);
+ parser = guththila_xml_pull_parser_create(env,reader_mem);
guththila_xml_pull_parser_read(env,parser);
printf("running test");