Add Existing node to another node's Child node - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Add Existing node to another node's Child node

Hi there,

I have following XML and i want to transform it to my desire XML using XSLT ,So I need help

Given is My Input XML

<?xml version = '1.0'?>


274845
55002


928265
59897
LG
LAMBERT TRUCKING INC
PH


957858
59940
LG
SONNY DAVIS INC
MA

957858
59940
LG
SONNY DAVIS INC
PH




With the use of XSLT i want to generate Output XML like this.

<?xml version="1.0"?>


274845
55002

LG
A P SUPPLY CO
PH
MA





I have tried below XSLT but it is not giving desire result








































Please help ....

Sign In or Register to comment.