<?php
require_once __DIR__ . '/../Controllers/XmlController.php';
require_once __DIR__ . '/../Controllers/CertificadoController.php';

try {
    $certificado = CertificadoController::carregar();
    $xmlBase64 = XmlController::gerarXmlBase64();

    echo "<h2>XML em Base64:</h2>";
    echo "<textarea rows='5' cols='100'>" . htmlspecialchars($xmlBase64) . "</textarea>";

} catch (Exception $e) {
    echo "Erro: " . $e->getMessage();
}
?>