@@ -0,0 +1,465 @@
+package xml.commands;%0A%0Aimport utility.Command;%0Aimport xml.Element;%0A%0Apublic class ChangeTagCommand implements Command %7B%0A%09private Element element;%0A%09private String tag;%0A%09private String oldTag;%0A%09%0A%09public ChangeTagCommand(Element element, String tag) %7B%0A%09%09this.element = element;%0A%09%09this.tag = tag;%0A%09%09oldTag = new String(element.getTag());%0A%09%7D%0A%0A%09@Override%0A%09public void perform() %7B%0A%09%09element.setTag(tag);%0A%09%7D%0A%0A%09@Override%0A%09public void undo() %7B%0A%09%09element.setTag(oldTag);%0A%09%7D%0A%0A%7D%0A

Add a Command to change a tag