Return-Path: X-Original-To: apmail-axis-c-user-archive@www.apache.org Delivered-To: apmail-axis-c-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95DBE95BD for ; Tue, 24 Apr 2012 10:55:45 +0000 (UTC) Received: (qmail 20463 invoked by uid 500); 24 Apr 2012 10:55:45 -0000 Delivered-To: apmail-axis-c-user-archive@axis.apache.org Received: (qmail 20049 invoked by uid 500); 24 Apr 2012 10:55:39 -0000 Mailing-List: contact c-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C User List" Delivered-To: mailing list c-user@axis.apache.org Received: (qmail 20014 invoked by uid 99); 24 Apr 2012 10:55:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 10:55:38 +0000 X-ASF-Spam-Status: No, hits=2.1 required=5.0 tests=DATE_IN_PAST_96_XX,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcawau-axis-c-user@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 10:55:33 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SMdOi-00045i-R8 for c-user@axis.apache.org; Tue, 24 Apr 2012 12:55:05 +0200 Received: from bgl11-dmz-wsa-2.cisco.com ([72.163.217.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Apr 2012 12:55:04 +0200 Received: from yatjoshi by bgl11-dmz-wsa-2.cisco.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Apr 2012 12:55:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: c-user@axis.apache.org From: Yateen V. Joshi Subject: Integrating libxml2 parser in axis and making it work Date: Fri, 20 Apr 2012 09:47:08 +0000 (UTC) Lines: 38 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 72.163.217.103 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi, With kind help from Graham Holden, I did following to parse multilingual characters using apache-axis2c-libxml2 parser. Platform - Red Hat Linux - I had an apache that uses axis2c with below 'inclusion' LoadModule axis2_module modules/mod_axis2.so Axis2RepoPath ${AXIS2C_HOME} Axis2LogFile /localhome/stab4/log/axis.log Axis2LogLevel trace SetHandler axis2_module - The axis2c version is 1.6.0 - This was originally compiled using Guththila parser. Some threads indicated that I need to compile axis2c using libxml2 parser for it to process multilingual characters. - So, I saw that my axis had below files under /axiom/src/parser/libxml2/ libxml2_reader_wrapper.c Makefile Makefile.in libxml2_writer_wrapper.c Makefile.am SCCS - I recompiled axis using libxml2 parser (./configure --enable-libxml2). - Without doing any changes to apache configuration, I replace my axis libs and bins. - I did not change my earlier parser code as it was using axiom APIs. - I ran my test case where I sent Chinese characters in an XML, however, my parser could not parse it. I was thinking that it would be possible using libxml2. - The parser is running fine with normal ascii characters. - The call that is not returning a valid value is - param1_text_node = axiom_node_get_first_child(node_it, env); if (!param1_text_node) <<<<<<<<< this becomes true, that means, invalid_xml_format. Can someone please help me? Do I need to do something differently here? --------------------------------------------------------------------- To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org For additional commands, e-mail: c-user-help@axis.apache.org