Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String fileContents = new File('D:\\Script\\src\\d3def1d592b243029b9ee42b.xml').text
- def Violations = new XmlSlurper().parseText(fileContents)
- println Violations.Violation.@'OBJ_SIZE'
- if ('OBJ_SIZE'==1){
- def file = new File('D:/Directory1')
- file.mkdir()
- } else {def file = new File('D:/Directory2')
- file.mkdir()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement