Hello.

I am having a hard to trying to use Xerces with Apache and modperl.  The
request handler give me segmentation fault on requests.  My suspect spawning
of new Apache processes.  After looking around I haven't found any
discussion on using Xerces with modperl so it made me wonder if that not
possible at all (being novice with XML).  Tell me I am wrong?

On XML-Xerces make I got few warning like "warning: extra tokens at end of
#endif directive".  Some tests failed but the nevertheless the samples
worked.

I am running Redhat 7.2, Apache 1.3.24, modperl 1.26., Xerces 1.7.0 and
XML-Xerces 1.7.0.1.

Thanks,
Kristjan

ps. my perl test script


# parse xml input
use XML::Xerces;
use XML::Xerces::DOMParse;

my $parser = XML::Xerces::DOMParser->new();
$parser->setValidationScheme ($XML::Xerces::DOMParser::Val_Always);
$parser->setDoNamespaces (1);
$parser->setDoSchema (1);

my $error_handler = XML::Xerces::PerlErrorHandler->new();
$parser->setErrorHandler($error_handler);

eval {
  $parser->parse ("mayolink.xml");
};
if ($@) {
        if (ref $@) {
          #die $@->getMessage();
        } else {
          #die $@;
        }
        return 0;
}

my $doc = $parser->getDocument ();
warn($doc->getElementsByTagName("*")->getLength());

my $nodes = $doc->getElementsByTagName("CUT");
my $n = $nodes->getLength;
for(my $i=0; $i < $n; $i++)
{
        warn($nodes->item($i)->getNodeName());
        warn($i);
}

return 1;



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

Reply via email to