Commit 5c08e3f5 authored by Christopher Cottier's avatar Christopher Cottier

added method for getting root node of xml file

parent fa709b15
......@@ -60,7 +60,11 @@ class XMLParser {
}
return matchingNodes
//BFS to find node
//BFS to find nodes
}
public GPathResult getRootNode(){
return createParser()
}
......
......@@ -33,3 +33,6 @@ println(groupId.toString())
def dependencies = pomXMLParser.findAllNodesByTagName("dependency")
println(dependencies)
def rootPom = pomXMLParser.getRootNode()
println(rootPom)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment