Fixed "DTD not found" problem
This commit is contained in:
parent
649b3593fb
commit
f73803ab6d
|
@ -42,6 +42,7 @@ public:
|
||||||
LIBXML_TEST_VERSION
|
LIBXML_TEST_VERSION
|
||||||
|
|
||||||
xmlInitializeCatalog();
|
xmlInitializeCatalog();
|
||||||
|
xmlLoadCatalog ( catalogPath.mb_str() );
|
||||||
::catalog = xmlLoadACatalog ( catalogPath.mb_str() );
|
::catalog = xmlLoadACatalog ( catalogPath.mb_str() );
|
||||||
|
|
||||||
initGenericErrorDefaultFunc ( NULL );
|
initGenericErrorDefaultFunc ( NULL );
|
||||||
|
@ -579,14 +580,16 @@ wxString WrapLibxml::catalogResolve
|
||||||
char *s = ( char * ) xmlACatalogResolve ( ::catalog,
|
char *s = ( char * ) xmlACatalogResolve ( ::catalog,
|
||||||
( const xmlChar * ) ( const char *) publicId.utf8_str(),
|
( const xmlChar * ) ( const char *) publicId.utf8_str(),
|
||||||
( const xmlChar * ) ( const char *) systemId.utf8_str() );
|
( const xmlChar * ) ( const char *) systemId.utf8_str() );
|
||||||
#ifndef __WXMSW__
|
|
||||||
if ( s == NULL )
|
if ( s == NULL )
|
||||||
|
{
|
||||||
|
#ifndef __WXMSW__
|
||||||
s = ( char * ) xmlCatalogResolve (
|
s = ( char * ) xmlCatalogResolve (
|
||||||
( const xmlChar * ) ( const char *) publicId.utf8_str(),
|
( const xmlChar * ) ( const char *) publicId.utf8_str(),
|
||||||
( const xmlChar * ) ( const char *) systemId.utf8_str() );
|
( const xmlChar * ) ( const char *) systemId.utf8_str() );
|
||||||
|
if ( s == NULL )
|
||||||
#endif
|
#endif
|
||||||
if ( s == NULL )
|
return wxEmptyString;
|
||||||
return wxEmptyString;
|
}
|
||||||
|
|
||||||
wxString url ( s, wxConvUTF8 );
|
wxString url ( s, wxConvUTF8 );
|
||||||
xmlFree ( s );
|
xmlFree ( s );
|
||||||
|
|
Loading…
Reference in New Issue