• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

concat please help

 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a template xml
<root>
<Tmain>
<T>T1</T>
<T>T2</T>
<T>T3</T>
</Tmain>
<Tmain>
<T>T2</T>
</Tmain>
</root>
and a val xml
<T1>
v1
v2
v3
</T1>
<T2>
v4
v5
v6
</T2>
<T3>
v7
v8
v9
</T3>
what I have to do is-
1. If there are two or more <T> tags in <Tmain>
i want output as v1v4v7, v1v4v8, ... v1v5v7, v1v5v8..and so on
2. if there is only one <T> tags then I want it direct
how do I do it?
do I need recursion for that?
Tina
 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No one is out there?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic