Setting schema location in code - SAXNotRecognizedException

Stephen Collyer <[email protected]> Fri, 24 Jun 2005 13:07:23 +0100
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
I'm using XML::Xerces 2.5.0 and I'm getting a
XML::Xerces::SAXNotRecognizedException when trying to use
either of these:

$XML::Xerces::XMLUni::fgXercesSchemaExternalSchemaLocation
$XML::Xerces::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation

via code like:

$parser->setFeature("$XML::Xerces::XMLUni::fgXercesSchemaExternalSchemaLocation",
                     "http://xyz/ns schema.xsd");

$parser->setFeature("$XML::Xerces::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation",
                     "schema.xsd");

Can anyone see what I'm doing wrong ?

-- 
Regards

Stephen Collyer
Netspinner Ltd