"Sterin, Ilya" <[EMAIL PROTECTED]> writes:

> Jason, I'm still in the process, but here is a question, where is
> setDoSchema method located in 1.5.3 installed on Solaris.
> 
> Here is the simple script...
> #!/usr/local/perl5.00506/bin/perl
> 
> use XML::Xerces;
> use XML::Xerces::DOMParse;
> 
> my $domParser = new XML::Xerces::DOMParser;
> $domParser->setDoNamespaces(1);
> $domParser->setDoSchema(1);
> $domParser->parse(......);
> 
> That gives an error of not locating the setDoSchema method.


Solaris? Man do you get around. setDoSchema() is brand new for
Xerces-C-1.5. When you get a failure like this it usually means that
perl is finding an older version of XML::Xerces in you @INC before it
finds the recent one. 

Easy way to check this is to enter the debugger on the command line:

 $ perl -de 1
Default die handler restored.

Loading DB routines from perl5db.pl version 1.07
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

main::(-e:1):   1
  DB<1> use XML::Xerces

  DB<2> f Xerces.pm
Choosing /usr/local/lib/perl5/site_perl/5.6.0/ppc-linux/XML/Xerces.pm matching 
`Xerces.pm':
1       # This file was automatically generated by SWIG
2       package XML::Xerces;
3:      require Exporter;
4:      require DynaLoader;
5:      @ISA = qw(Exporter DynaLoader);
6       package XML::Xercesc;
7:      bootstrap XML::Xerces;
8:      var_Xerces_init();
9       package XML::Xerces;
10:     @EXPORT = qw( );
  DB<3> 

The 'f' command finds the file of that name. If you don't see the path
you expect, you probably want to add a "use 'lib'" or 'use blib' line
to your script.

jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to