I try to read one of Italy's electronic invoice file.
The header is not quiet common (to me, at least):
<n0:FatturaElettronica versione="FPR12" xmlns:n0="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2" xmlns:prx="urn:sap.com:proxy:RTP:/1SAI/TAS2413580D04BDBC7A8515:750" xmlns:n1="http://www.w3.org/2000/09/xmldsig#">
<FatturaElettronicaHeader>
I am trying to retrieve the value of xmlns:prx. The root.tag sends back : {http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2}FatturaElettronica ... and root.attrib: {'versione': 'FPR12'}
This "xmlns:prx" looks like an attribute, but remain invisible to etree. How can I access those values?