Forum Discussion

Happy's avatar
Happy
Contributor
10 years ago
Solved

How to get part of xml from project properties

I need to get part of xml, that located under project properties. 

XML located under Custom Properties, named Test

<test1>aaa</test1>

<test2>bbb</test2>

<test3>ccc</test3>

And from this xml I need to take only value bbb

 

 

 

  • def result= context.expand('${#Project#Test#//test2}').toString()

2 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    With the information above, it is difficult to understand the problem itself. Would please make it little more clear so that other can reproduce the problem first?
  • def result= context.expand('${#Project#Test#//test2}').toString()