Forum Discussion

Mis3's avatar
Mis3
Frequent Contributor
4 years ago
Solved

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

  • Mis3

    If 'hexaContent' is unique node in the xml, you can directly use ''//hexaContent" instead of absolute path (which you used)

3 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3

    Mis3

    If 'hexaContent' is unique node in the xml, you can directly use ''//hexaContent" instead of absolute path (which you used)