Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Remove Empty tags in XML using plain python without lxml library
Post: RE: Remove Empty tags in XML using plain python wi...

I believe that without using extra library like lxml etc., this requirement might not be possible, but as an implementation specialist i found a work-around for this. You can replace your empty string...
saurabhverma2412 General Coding Help 3 9,446 Aug-21-2018, 04:53 PM
    Thread: Remove Empty tags in XML using plain python without lxml library
Post: RE: Remove Empty tags in XML using plain python wi...

Below is the whole code that i'm using as of now. import xml.etree.ElementTree as ET tree = ET.parse("xml_test.txt") root = tree.getroot() for elem in root.iter('MsgHeader'): Deal = root.find("./...
saurabhverma2412 General Coding Help 3 9,446 Aug-20-2018, 05:08 PM
    Thread: Remove Empty tags in XML using plain python without lxml library
Post: Remove Empty tags in XML using plain python withou...

My use case is to remove empty tags in an XML using simple plain python 2.7. No extra lxml library is available. Sample XML: <ArML> <MsgHeader> <Deal> <At...
saurabhverma2412 General Coding Help 3 9,446 Aug-20-2018, 04:04 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020