Groovy Script for reading prefix value of the xml file name
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2018
09:40 PM
02-11-2018
09:40 PM
Groovy Script for reading prefix value of the xml file name
I have done a script for taking xml files from local machine. It's working good but I need a script for taking only prefix/suffix of the file name. this is my script.
Can You please help me on this..
def soNumber = holder.getNodeValue("//*:employees/*:employee/*:id")//
def file = new File (groovyUtils.projectPath+"/${soNumber}.xml")//
log.info(file)
def fileToLoad = '888888'// default file name is 888888
if(file.exists())
{
fileToLoad = soNumber
}
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2018
09:59 AM
09-12-2018
09:59 AM
Hi Priyanka,
Can you please clarify your request and provide us with some example?
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
