I need to transform XML using xslt.
i want to transform a node that has child nodes, to node that his tag name
is the name of the parent and his value is the value of one of his children.
example:
the given xml:
<Parent>
<ChildA>1</ChildA>
<ChildB>2</ChildB>
</Parent>
the desired xml output:
<Parent>2</Parent>
You are not specifying which child node you are interested in….
Something like this:
uses the value of the first child node called
ChildB(if any). This:uses the value of the second child node. This:
uses the value of the last child node….