Subject:xslt, xml parsing text between nodes. Author:seema r Date:10 Feb 2006 01:01 AM
I am trying to parse an xml which looks like this-
<abcd>
<short param="3">interface
index: <parameter id="1" value="Index"/> ;
Status: <parameter id="2" value="Status"/> ;
StatusXyz: <parameter id="3" value="StatusXyz"/> ;
</short>
</abcd>
I need to read the String in the short node,
I tried but I could get it as
interface
index:
Status:
StatusXyz:
or by using short/text() I could read it as
interface
index:
what I need is the result you get when copy of is used. i.e in format
interface
index: <parameter id="1" value="Index"/> ;
Status: <parameter id="2" value="Status"/> ;
StatusXyz: <parameter id="3" value="StatusXyz"/> ;
if I use copy of the whole String is sent to the output file. Can I somehow get the same result in a String format and I should be able to modify it to replace parameter tag by another String and then direct it to output.