Download this file
6 lines (5 with data), 159 Bytes
#!/bin/sh
./xmlstarlet ed \
-s /xml/table/rec -t elem -n new-field -v new-value \
-i '$prev' -t attr -n new-attr -v new-attr-value \
xml/table.xml
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.