Here is my problem

 

XML Input

<root>

<locs>

    <loc>

    <locno>1</locno>

    <bldno>1</bldno>

    <PDSCov>

        <PDSCLSCode>232323</PDSCLSCode>

    </PDSCov>

    </loc>

    <loc>

    <locno>1</locno>

    <bldno>2</bldno>    

    <PDSCov>

        <PDSCLSCode>556456232323</PDSCLSCode>

    </PDSCov>

    </loc>

  </locs>

 

<lbLocs>

<lbloc>

    <locno>1</locno>

    <bldno>1</bldno>

    <Covs>

    <Cov>

        <CLSCode>2424434232323</CLSCode>

    </Cov>

    </Covs>

</lbloc>

<lbloc>

    <locno>1</locno>

    <bldno>2</bldno>

    <Covs>

    <Cov>

        <CLSCode>555555</CLSCode>

    </Cov>

    </Covs>

</lbloc>

</lbLocs>

 

</root>

 

Output XML

<root>

<locs>

    <loc>

    <locno>1</locno>

    <bldno>1</bldno>

    

    </loc>

    <loc>

    <locno>1</locno>

    <bldno>2</bldno>    

    

    </loc>

    

</locs>

<lbLocs>

<lbloc>

    <locno>1</locno>

    <bldno>1</bldno>

    <Covs>

    <Cov>

        <CLSCode>2424434232323</CLSCode>

    </Cov>

    <Cov>

        <CLSCode>232323</CLSCode>

    </Cov>

    </Covs>

</lbloc>

 

<lbloc>

    <locno>1</locno>

    <bldno>2</bldno>

    <Covs>

    <Cov>

        <CLSCode>555555</CLSCode>

    </Cov>

    <Cov>

        <CLSCode>556456232323</CLSCode>

    </Cov>

    </Covs>

</lbloc>

 

</lbLocs>

 

</root>

 

 

I need the nodes from one node moved into another.

How do I do this?

Thanks'

Alan

 

Alan Andrade | [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

________________________________

The information contained in this e-mail message is intended only for
the personal and confidential use of the recipient(s) named above. This
message may be an attorney-client communication and/or work product and
as such is privileged and confidential. If the reader of this message is
not the intended recipient or an agent responsible for delivering it to
the intended recipient, you are hereby notified that you have received
this document in error and that any review, dissemination, distribution,
or copying of this message is strictly prohibited. If you have received
this communication in error, please notify us immediately by e-mail, and
delete the original message. 



-----------------------------------------
The information contained in this e-mail message is intended only
for the personal and confidential use of the recipient(s) named
above. This message may be an attorney-client communication and/or
work product and as such is privileged and confidential. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and
that any review, dissemination, distribution, or copying of this
message is strictly prohibited. If you have received this
communication in error, please notify us immediately by e-mail, and
delete the original message.

Reply via email to