Gems/AtomLyIntegration/AtomFont/Code/Source/AtomFont.cpp
XmlNodeRef SafeLoadXmlFromFile(const AZStd::string& xmlPath)
    {
        if (gEnv->pCryPak->IsFileExist(xmlPath.c_str()))
        {
            return GetISystem()->LoadXmlFromFile(xmlPath.c_str());
        }

        return XmlNodeRef();
    }
//! Only attempt XML file load if file exists.
//! There are use-cases where the XML path is not fully known (such as
//! when referencing font family names from font family XML files), and
//! attempting to load the XML files directly via ISystem() methods can
//! produce a lot of warning noise.
Only attempt XML file load if file exists.
There are use-cases where the XML path is not fully known (such as
when referencing font family names from font family XML files), and
attempting to load the XML files directly via ISystem() methods can
produce a lot of warning noise.
Only attempt XML file load if file exists . There are use - cases where the XML path is not fully known ( such as when referencing font family names from font family XML files ) and attempting to load the XML files directly via ISystem () methods can produce a lot of warning noise .
XmlNodeRef SafeLoadXmlFromFile(const AZStd::string& xmlPath)
    {
        if (gEnv->pCryPak->IsFileExist(xmlPath.c_str()))
        {
            return GetISystem()->LoadXmlFromFile(xmlPath.c_str());
        }
        return XmlNodeRef();
    }
XmlNodeRef SafeLoadXmlFromFile ( const AZStd :: string & xmlPath ) { if ( gEnv -> pCryPak -> IsFileExist ( xmlPath . c_str ( ) ) ) { return GetISystem ( ) -> LoadXmlFromFile ( xmlPath . c_str ( ) ) ; } return XmlNodeRef ( ) ; }
Only attempt XML file load if file exists.
Only attempt XML file load if file exists .