Hi,

I am trying to set the feature  fgXercesSchemaExternalSchemaLocation to a schema path
Using Visual C++ and it blows up. I am using the following code.
 
// Begin code.

DOMImplementation *pImpl = DOMImplementationRegistry::getDOMImplementation(gLS);
m_pValidator=((DOMImplementationLS*)pImpl)createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS,0);
 
// Problem code.
 m_pValidator->setFeature(XMLUni::fgXercesSchemaExternalSchemaLocation, pszSchemaPath);
 
// End code
 
psSchemaDir is a fully qualified schema path. (ie z:\schema\schema.xsd)
 
My goal is to ignore the xsi:noNamespaceSchemaLocation= attribute value in the XML file and to
use the value in the program (pszSchemaPath).  When the program executes to //Problem code it blows up.  
 
How can I set my schema path internally in the program to override the value in the XML file?
 
Thank you,
Mary

Reply via email to