Skip to content

Commit

Permalink
working Version
Browse files Browse the repository at this point in the history
  • Loading branch information
nedlir committed Feb 25, 2022
1 parent bfb7a1e commit 3a1be13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 55 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test.xml
Tester.java
Testing.java
tempCodeRunnerFile.java
tempCodeRunnerFile.java
makefile
6 changes: 5 additions & 1 deletion XMLParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ public void removeElementOfSecurity() {
Element element = (Element) document.getElementsByTagName(TARGET_ELEMENT).item(0);

// remove the node:
element.getParentNode().removeChild(element);
if (element != null) // if element == null it means there is no hashed pass
{
element.getParentNode().removeChild(element);
}

}

public void writeToXMLFile(String newFilePath) throws Exception {
Expand Down
53 changes: 0 additions & 53 deletions ZipFileManipulator.java

This file was deleted.

0 comments on commit 3a1be13

Please sign in to comment.