posted 21 years ago
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
Alongwith being a good coder, try to be a good professional as well!