in reply to Deleting XML element using XML::LibXML

I prefer XML::XSH2. In it, you can just
open input.xml ; delete //*[uid='16b3'] ; save :b ;