GeeCON Prague 2014*
The moose likes XML and Related Technologies and the fly likes concat please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "concat please help" Watch "concat please help" New topic
Author

concat please help

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
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!
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
No one is out there?
 
GeeCON Prague 2014
 
subject: concat please help