Quantcast
Channel: xsl: Copy the entire xml except a parent node but keep its child node - Stack Overflow
Viewing all articles
Browse latest Browse all 4

xsl: Copy the entire xml except a parent node but keep its child node

$
0
0

I want to copy the entire XML document but remove a parent node. However this parent node also has a child that I'd like to keep.

The node to remove is <LoginID> and the child node to keep is <PAN>.

<InqRs><LoginID>                <!-- remove --><PAN>4506445</PAN>   <!--  keep  --></LoginID><RqUID>93</RqUID><Dt>90703195116</Dt><CaptureDate>704</CaptureDate><ApprovalCode>934999</ApprovalCode><StatusCode>000</StatusCode><List><Count>9</Count><AddDataFlag>N</AddDataFlag><Use>C</Use><DetRec><ID>007237048637</ID><Type1>62</Type1><Qual /><ID>0010</ID><Status>1</Status><InqFlag>Y</InqFlag></DetRec></List></InqRs>

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images