in reply to how to remove an empty line from a xml file??
Hi
I need to remove the empty line which is created due to deletion of data element in the xml file to achieve the ideal modified xml file. how can I do that? any suggestions?
The empty line is just another child XML::DOM::Node , no not an element, but XML::DOM::Text node, a child of $item, a sibling to $data,
So ->getChildNodes and ->removeChild as you require
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to remove an empty line from a xml file??
by ankit.tayal560 (Beadle) on Oct 01, 2016 at 08:34 UTC | |
by Corion (Patriarch) on Oct 01, 2016 at 08:46 UTC | |
by ankit.tayal560 (Beadle) on Oct 01, 2016 at 09:08 UTC | |
by Corion (Patriarch) on Oct 01, 2016 at 09:13 UTC | |
by beech (Parson) on Oct 01, 2016 at 09:00 UTC | |
by ankit.tayal560 (Beadle) on Oct 01, 2016 at 09:29 UTC |