VirtualBoxXMLUtil.cpp revision c97989161fbe75bc14cea477a5443bbf474dd3ad
/** @file
*
* VirtualBox XML utility class implementation
*/
/*
* Copyright (C) 2006-2007 innotek GmbH
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License as published by the Free Software Foundation,
* in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
* distribution. VirtualBox OSE is distributed in the hope that it will
* be useful, but WITHOUT ANY WARRANTY of any kind.
*
* If you received this file as part of a commercial VirtualBox
* distribution, then only the terms of your commercial VirtualBox
* license agreement apply instead of the previous paragraph.
*/
#include "VirtualBoxXMLUtil.h"
#include "VirtualBoxXMLUtil_entities.h"
#include "VirtualBoxXMLUtil_common_entities.h"
#include "Logging.h"
#include <string.h>
/**
* Callback to resolve external entities when parsing and validating
* VirtualBox settings files (see FNCFGLDRENTITYRESOLVER).
*/
// static
const char *pcszPublicId,
const char *pcszSystemId,
const char *pcszBaseURI,
{
if (!pEntity)
return VERR_INVALID_POINTER;
#if 0
LogFlow (("VirtualBoxXMLUtil::cfgLdrEntityResolver():\n"
" publicId='%s', systemId='%s', baseURI='%s'\n",
#endif
{
return VINF_SUCCESS;
}
else
{
return VINF_SUCCESS;
}
else
{
AssertMsgFailed (("Unexpected entity: '%s' - knows: '%s' and '%s'\n", pcszSystemId, VBOX_XML_SCHEMA_COMMON, VBOX_XML_SCHEMA));
return VERR_GENERAL_FAILURE;
}
return VINF_SUCCESS;
}
// static