You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Steve Harrington <sh...@aoc.nrao.edu> on 2005/04/06 22:10:54 UTC
Re: Using fgXercesSchemaExternalSchemaLocation to set a schema path.
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
Mary_White@trilliumsoftware.com 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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org