You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/11/21 09:40:50 UTC

svn commit: r345868 - /webservices/axis2/trunk/c/modules/xml/parser/guththila/test/guththila_test.c

Author: samisa
Date: Mon Nov 21 00:40:42 2005
New Revision: 345868

URL: http://svn.apache.org/viewcvs?rev=345868&view=rev
Log: (empty)

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=345868&r1=345867&r2=345868&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 Mon Nov 21 00:40:42 2005
@@ -35,14 +35,14 @@
     char *p =0;
     int token = 0;
     char *filename = "test.xml";
-    f= fopen("test.xml","r");
+
     if(argc > 1)
         filename = argv[1];
-
+    
+    f =fopen(filename,"r");
     allocator = guththila_allocator_init(NULL);
     env       = guththila_environment_create(allocator,NULL,NULL);
   
-    reader    = guththila_reader_create_for_file(env,filename);
     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);
@@ -174,7 +174,7 @@
 
 
 printf("\n\n\n\n");
-writer = guththila_create_xml_stream_writer(env,stdout,NULL,1);
+writer = guththila_create_xml_stream_writer(env,NULL ,NULL,1);
 guththila_xml_stream_writer_write_start_document_with_version(env,writer,"1.0");
 guththila_xml_stream_writer_write_start_element(env,writer,"test");
 guththila_xml_stream_writer_write_attribute(env,writer,"test","axis2c");