Ciao a tutti..il mio problema è il seguente..si tratta di un problema di conversione.
La classe richiamata è la seguente:
codice:
class StrX
{
public :
    // -----------------------------------------------------------------------
    //  Constructors and Destructor
    // -----------------------------------------------------------------------
    StrX(const XMLCh* const toTranscode)
    {
        // Call the private transcoding method
        fLocalForm = XMLString::transcode(toTranscode);
    }

    ~StrX()
    {
        XMLString::release(&fLocalForm);
    }

    // -----------------------------------------------------------------------
    //  Getter methods
    // -----------------------------------------------------------------------
    const char* localForm() const
    {
        return fLocalForm;
    }

private :
    // -----------------------------------------------------------------------
    //  Private data members
    //
    //  fLocalForm
    //      This is the local code page form of the string.
    // -----------------------------------------------------------------------
    char*   fLocalForm;
};

inline XERCES_STD_QUALIFIER ostream& operator<<(XERCES_STD_QUALIFIER ostream& target, const StrX& toDump)
{
    target << toDump.localForm();
    return target;
}
Il metodo scritto da me(che richiama la precedente) ha la seguente linea di codice mi solleva l'errore:

impossibile convertire da 'StrX' a 'const char *'

codice:
const char* n= StrX(name);
Forse chiamando StrX(name ) non viene restituito il tipo di dato const char* o c'è qualche altra funzione da utilizzare.
Grazie e ciaoooooooooo