像这样:
xmlstarlet edit -u '/domain/devices/interface/mac[@address="52:54:00:46:a3:25"]/parent::link/@state='up'" -v 'up' mg.xml