cancel
Showing results for 
Search instead for 
Did you mean: 

How to get part of xml from project properties

SOLVED
Highlighted
Contributor

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

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Contributor

Re: How to get part of xml from project properties

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

View solution in original post

2 REPLIES 2
Highlighted
Community Hero

Re: How to get part of xml for decoding

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?


Regards,
Rao.
Highlighted
Contributor

Re: How to get part of xml from project properties

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

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors