- simplexml_load_string: documentation ( source)
- print_r: documentation ( source)
<?php
$test = "<Allegati>
<NomeAttachment>Prefettura Ge presenze settembre.xlsx</NomeAttachment>
<FormatoAttachment>XLSX</FormatoAttachment>
<DescrizioneAttachment>Prefettura Ge presenze settembre</DescrizioneAttachment>
<Attachment>UEsDBBQABgAIAAAAIQBss0I7lgEAADAGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</Attachment>
</Allegati>";
print_r(simplexml_load_string($test,'SimpleXMLElement', LIBXML_NOCDATA));