[Python] one header and N payloads in xml file

Discussão em 'Python' iniciado por Stack, Outubro 24, 2024.

  1. Stack

    Stack Membro Participativo

    I have a xml file with n headers and n payloads

    <header1>
    payload1
    </header1>
    <header1>
    payload2
    </header1>


    How can I remove headers and let only the first one using python or Linux commands? the output will be payload1 payload2

    Continue reading...

Compartilhe esta Página