> SetProperty() fails with 'expected _p_void'
> -------------------------------------------
>
> Key: XERCESP-42
> URL:
https://issues.apache.org/jira/browse/XERCESP-42> Project: Xerces-P
> Issue Type: Bug
> Components: SWIG
> Affects Versions: 2.5.0
> Environment: Operating System: Linux
> Platform: All
> Reporter: Jason E. Stewart
> Assigned To: Xerces-P Initial owner
>
> From: "Stankovic, Bojan" <
BStankovic@...>
> Subject: setProperty of Xerces
> To: "'
xerces-p-dev@...'" <
xerces-p-dev@...>
> Date: Thu, 13 Mar 2003 09:19:57 +0100
> Hello,
> I tried to use Xerces SAX2 parser to validate one XML document according to
> external XML Schema, but I don't know what function setProperty expects as
> parameters - behind is C++ function SAX2XMLReader::setProperty(const XMLCh*
> const name, void* value). There are many examples how to call it from C++ or
> Java, but I didn't find from Perl.
> I used :
> my
> $id="
http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocat> ion";
> my $sch="configuration.xsd";
> $parser->setProperty($id,$sch);
> and error message was:
> Type error in argument 3 of SAX2XMLReader_setProperty. Expected
> _p_void at ...
> Could somebody help me, please?
> Kind regards
> Bojan