21.12.2022 Views

python_para_desenvolvedores_2ed

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

164 XML

root.remove(root.find('Raposa'))

print root.getchildren()

Saída:

[<Element Lobo at ab3a58>, <Element Raposa at ab3b70>]

Cachorro {'cor': 'Branco', 'raca': 'Labrador', 'nome': 'Bandit'}

[<Element Lobo at ab3a58>]

O XML é muito útil por facilitar a interoperabilidade entre sistemas, mesmo

que estes sejam desenvolvidos em tecnologias diferentes.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!