G
Garfield
I use xerces-c-2.7 on Linux
I want to use resolveEntity method in EntityResover handler for
parsing a schema.
But I don't know about to use Inputsource class.
========================== my code ==========================
InputSource* SAXInputHandlers::resolveEntity ( const XMLCh *const
publicId,
const XMLCh *const systemId )
{
cout << "==== resolveEntity ( EntityResolver ) ====" << endl;
cout << " Entity : " << StrX(systemId) << endl;
InputSource * src = new LocalFileInputSource(systemId);
cout << " schema : " << StrX(src->getSystemId() ) << endl;
return src;
}
===========================================================
output is a Segmentation error during parsing the schema.
why happen the error?
plz give me an answer..
I want to use resolveEntity method in EntityResover handler for
parsing a schema.
But I don't know about to use Inputsource class.
========================== my code ==========================
InputSource* SAXInputHandlers::resolveEntity ( const XMLCh *const
publicId,
const XMLCh *const systemId )
{
cout << "==== resolveEntity ( EntityResolver ) ====" << endl;
cout << " Entity : " << StrX(systemId) << endl;
InputSource * src = new LocalFileInputSource(systemId);
cout << " schema : " << StrX(src->getSystemId() ) << endl;
return src;
}
===========================================================
output is a Segmentation error during parsing the schema.
why happen the error?
plz give me an answer..