Mis3
4 years agoFrequent Contributor
Groovy Script: Line Continuation
Below is a def statement from one of my Groovy Scripts:
def MESSAGE4 = holder.getNodeValue("/S:Envelope/S:Body/ns2:getSubscriptionInformationWithInterpretedContentResponse/resultData/interpretedFilesList/interpretedFile/ns2:defaultInterpretedTransparentFileContent/hexaContent")
How do I break this line into two to improve readability?
Please help.
Thanks
If 'hexaContent' is unique node in the xml, you can directly use ''//hexaContent" instead of absolute path (which you used)