Correct me if I'm wrong, but I think the problem is that she needs to use:

        virtual void setProperty (const XMLCh *const name, void *value)=0

instead of:

        virtual void setFeature (const XMLCh *const name, const bool state)=0

Cheers,

Steve Harrington
National Radio Astronomy Observatory

[EMAIL PROTECTED] wrote:

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


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



Reply via email to