Return-Path: Delivered-To: apmail-xerces-c-dev-archive@www.apache.org Received: (qmail 39777 invoked from network); 31 Aug 2006 17:40:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2006 17:40:53 -0000 Received: (qmail 29998 invoked by uid 500); 31 Aug 2006 17:40:51 -0000 Delivered-To: apmail-xerces-c-dev-archive@xerces.apache.org Received: (qmail 29974 invoked by uid 500); 31 Aug 2006 17:40:51 -0000 Mailing-List: contact c-dev-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-dev@xerces.apache.org Delivered-To: mailing list c-dev@xerces.apache.org Received: (qmail 29963 invoked by uid 99); 31 Aug 2006 17:40:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 10:40:51 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.39.38] (HELO web50910.mail.yahoo.com) (206.190.39.38) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 31 Aug 2006 10:40:50 -0700 Received: (qmail 63558 invoked by uid 60001); 31 Aug 2006 17:40:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=TZSfx2cQnDR/vsV4ohEt2EnRu3qE4JQT0RVWg7M3L5SEqpA7CH0iF7/rGkHDowK7W8rehNDmVnbiqZCR5ApTuC05aruqK0l9GTdr8X0BC5DNarGfroRZfPMRh/SdiRa0LPTy/rLPixSNHctFz3oIqtNio1IWrBmQpbJqsReBOOE= ; Message-ID: <20060831174028.63556.qmail@web50910.mail.yahoo.com> Received: from [192.52.57.33] by web50910.mail.yahoo.com via HTTP; Thu, 31 Aug 2006 10:40:28 PDT Date: Thu, 31 Aug 2006 10:40:28 -0700 (PDT) From: Jaideep Padhye Subject: Error in Xerces libraries in perl To: c-dev@xerces.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-341381831-1157046028=:62666" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-341381831-1157046028=:62666 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi all, I am trying to use the parse XML documents. I am trying to write a perl program which has the following structure. I am giving just the outline of code. parse.pl ############ sub parseXml { XML::Xerces::XMLPlatformUtils::Initialize(); ## this contains all the other code for doig various things like coutning nodes my $parser = XML::Xerces::XercesDOMParser->new(); my $doc = $parser->getDocument(); XML::Xerces::XMLPlatformUtils::Terminate(); return $doc; } init(); my $doc = parseXml("1..xml"); print Data::Dumper->Dump([$doc]); ## Some code my $doc1 = parseXml("2.xml"); print Data::Dumper->Dump([$doc1]); ########## End of parse.pl Problems: 1] When I run the above program the first call to the parseXml function provides correct output.For ex: $VAR1 = { 'job_id' => '41', 'status' => '0', 'status_tag' => 'COMMAND COMPLETED' }; but after the second call to the parseXml function the parsed document format returned is not proper. When I try to print the varible the second time I get the following output: $VAR1 = bless( {}, 'XML::Xerces::DOMDocument' ); 2] I assumed from the above output the Xerces library is having some errors. Hence I checked the logs and I found the follwoing errors: Validating test output : Can't locate auto/XML/Xerces/DOMDocument/swig_switch.al in @INC (@INC contains: /root/jdpadhye/autotest/clplib /root/jdpadhye/autotest/profilelib /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/XML/Xerces.pm line 998 Can anyone help me with this problem? Any kind of help is appreciated. Thanks a lot. JD \\\\//// / \ | \\ // | ( | (.) (.) |) ---------o00o--(_)--o00o----------------------- "A billion flies can be wrong !! I would rather eat lamb chops than shit " - Linus Torwalds ---------ooo0------------------------------- ( ) 0ooo \ ( ( ) \_) ) / (_/ --------------------------------- How low will we go? Check out Yahoo! Messenger�s low PC-to-Phone call rates. --0-341381831-1157046028=:62666 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi all,
 
I am trying to use the parse XML documents. I am trying to write a perl program which has the following structure. I am giving just the outline of code.
 
parse.pl
############
sub parseXml {
 
XML::Xerces::XMLPlatformUtils::Initialize();
 
## this contains all the other code for doig various things like coutning nodes
 
my $parser = XML::Xerces::XercesDOMParser->new();
my $doc = $parser->getDocument();
 XML::Xerces::XMLPlatformUtils::Terminate();
 return $doc;
}
 
init();
my $doc = parseXml("1..xml");
print Data::Dumper->Dump([$doc]);
## Some code
 
my $doc1 = parseXml("2.xml");
print Data::Dumper->Dump([$doc1]);
 
##########
End of parse.pl 

Problems:
 
1] When I run the above program the first call to the parseXml function provides correct output.For ex:
 
$VAR1 = {
          'job_id' => '41',
          'status' => '0',
          'status_tag' => 'COMMAND COMPLETED'
        };
 
but after the second call to the parseXml function the parsed document format returned is not proper. When I try to print the varible the second time I get the following output:
 
$VAR1 = bless( {}, 'XML::Xerces::DOMDocument' );
2] I assumed from the above output the Xerces library is having some errors. Hence I checked the logs and I found the follwoing errors:
 
Validating test output :
Can't locate auto/XML/Xerces/DOMDocument/swig_switch.al in @INC (@INC contains: /root/jdpadhye/autotest/clplib /root/jdpadhye/autotest/profilelib /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/XML/Xerces.pm line 998
Can anyone help me with this problem? Any kind of help is appreciated. Thanks a lot.
 
 
JD


\\\\////
/ \
| \\ // |
( | (.) (.) |)
---------o00o--(_)--o00o-----------------------
"A billion flies can be wrong !!
I would rather eat lamb chops than shit "
- Linus Torwalds
---------ooo0-------------------------------
( ) 0ooo
\ ( ( )
\_) ) /
(_/


How low will we go? Check out Yahoo! Messenger�s low PC-to-Phone call rates. --0-341381831-1157046028=:62666--