<xml>
<head>
<info>
<content>
<source attribute1="RSC1985s5c1" attribute2="6(17)">
data1
</source>
<cite/>
<case/>
(
<target attribute1="LRC1985s5c1" attribute1="6(17)1">
3e/191
</target>
)
</content>
<content>
<source attribute1="RSC1985s5c1" attribute2="6(17)">
data2
</source>
<cite/>
<case/>
(
<target attribute1="LRC1985s5c4" attribute2="6(17)1">
4e/54
</target>
)
</content>
</info>
</head>
</xml>
What i want is to merge the content of nodes in to single contetnt node(Asbelow), output should be like
<xml>
<head>
<info>
<content>
<source attribute1="RSC1985s5c1" attribute2="6(17)">
data
</source>
<source attribute1="RSC1985s5c1" attribute2="6(17)">
data2
</source>
<cite/>
<case/>
<target attribute1="LRC1985s5c1" attribute1="6(17)1">
3e/191
</target>
)
<source attribute1="RSC1985s5c1" attribute2="6(17)">
data2
</source>
<cite/>
<case/>
(
<target attribute1="LRC1985s5c4" attribute2="6(17)1">
4e/54
</target>
)
</content>
</info>
</head>
</xml>
xsltstarter
0
Newbie Poster
Recommended Answers
Jump to PostWhat exactly are the brackets for in the xml? are they typos? i.e.
( <target attribute1="LRC1985s5c4" attribute2="6(17)1"> 4e/54 </target> )
All 4 Replies
Mike Askew
131
Veteran Poster
Featured Poster
xsltstarter
0
Newbie Poster
Mike Askew
131
Veteran Poster
Featured Poster
Mike Askew
131
Veteran Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.