Convertendo de XML para CSV
From Basef
- Instalar o programa xml2csv:
sudo pip install xmlutils
- Rodar a conversão (substituir `tagname` pela TAG XML pai):
xml2csv --input /path/to/xml/file.xml --output /path/to/destination/file.csv --tag tagname
Pode ser necessário lêr o início e fim do arquivo XML. Os comandos `head` e `tail` podem ser usados:
head -c 1000 /path/to/xml/file.xml tail -c 1000 /path/to/xml/file.xml