TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ced ben
NA
3
2.3k
Copy Xml Node to another XML file
Sep 2 2013 11:16 AM
Hi,
i'm trying to copy a specific xml node and insert it into the original xml file.
the original file look like this :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02">
<pain.001.001.02>
<GrpHdr>
<MsgId></MsgId>
<CreDtTm></CreDtTm>
<BtchBookg></BtchBookg>
<NbOfTxs></NbOfTxs>
<CtrlSum></CtrlSum>
<Grpg></Grpg>
<InitgPty>
<Nm></Nm>
<PstlAdr>
<AdrLine></AdrLine>
<Ctry>FR</Ctry>
</PstlAdr>
</InitgPty>
</GrpHdr>
<PmtInf>
<PmtInfId></PmtInfId>
<PmtMtd></PmtMtd>
<PmtTpInf>
<SvcLvl>
<Cd></Cd>
</SvcLvl>
<CtgyPurp></CtgyPurp>
</PmtTpInf>
<ReqdExctnDt></ReqdExctnDt>
<Dbtr>
<Nm></Nm>
</Dbtr>
<DbtrAcct>
<Id>
<IBAN></IBAN>
</Id>
</DbtrAcct>
<DbtrAgt>
<FinInstnId>
<BIC></BIC>
</FinInstnId>
</DbtrAgt>
<ChrgBr></ChrgBr>
<CdtTrfTxInf>
<PmtId>
<EndToEndId></EndToEndId>
</PmtId>
<Amt>
<InstdAmt Ccy="EUR"></InstdAmt>
</Amt>
<CdtrAgt>
<FinInstnId>
<BIC></BIC>
</FinInstnId>
</CdtrAgt>
<Cdtr>
<Nm></Nm>
<Id>
<OrgId>
<PrtryId>
<Id></Id>
</PrtryId>
</OrgId>
</Id>
</Cdtr>
<CdtrAcct>
<Id>
<IBAN></IBAN>
</Id>
</CdtrAcct>
<RmtInf>
<Ustrd></Ustrd>
</RmtInf>
</CdtTrfTxInf>
</PmtInf>
</pain.001.001.02>
</Document>
the second file have the same structure but i want to keep the node "PmtInf" from it and put it in the original file like this :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02">
<pain.001.001.02>
<GrpHdr>
<MsgId></MsgId>
<CreDtTm></CreDtTm>
<BtchBookg></BtchBookg>
<NbOfTxs></NbOfTxs>
<CtrlSum>30</CtrlSum>
<Grpg></Grpg>
<InitgPty>
<Nm></Nm>
<PstlAdr>
<AdrLine></AdrLine>
<Ctry>FR</Ctry>
</PstlAdr>
</InitgPty>
</GrpHdr>
<PmtInf>
<PmtInfId>1</PmtInfId>
<PmtMtd>TRF</PmtMtd>
<PmtTpInf>
<SvcLvl>
<Cd></Cd>
</SvcLvl>
<CtgyPurp></CtgyPurp>
</PmtTpInf>
<ReqdExctnDt></ReqdExctnDt>
<Dbtr>
<Nm></Nm>
</Dbtr>
<DbtrAcct>
<Id>
<IBAN></IBAN>
</Id>
</DbtrAcct>
<DbtrAgt>
<FinInstnId>
<BIC></BIC>
</FinInstnId>
</DbtrAgt>
<ChrgBr></ChrgBr>
<CdtTrfTxInf>
<PmtId>
<EndToEndId></EndToEndId>
</PmtId>
<Amt>
<InstdAmt Ccy="EUR"></InstdAmt>
</Amt>
<CdtrAgt>
<FinInstnId>
<BIC></BIC>
</FinInstnId>
</CdtrAgt>
<Cdtr>
<Nm></Nm>
<Id>
<OrgId>
<PrtryId>
<Id></Id>
</PrtryId>
</OrgId>
</Id>
</Cdtr>
<CdtrAcct>
<Id>
<IBAN></IBAN>
</Id>
</CdtrAcct>
<RmtInf>
<Ustrd></Ustrd>
</RmtInf>
</CdtTrfTxInf>
</PmtInf>
<PmtInf>
<PmtInfId></PmtInfId>
<PmtMtd></PmtMtd>
<PmtTpInf>
<SvcLvl>
<Cd></Cd>
</SvcLvl>
<CtgyPurp></CtgyPurp>
</PmtTpInf>
<ReqdExctnDt></ReqdExctnDt>
<Dbtr>
<Nm></Nm>
</Dbtr>
<DbtrAcct>
<Id>
<IBAN></IBAN>
</Id>
</DbtrAcct>
<DbtrAgt>
<FinInstnId>
<BIC></BIC>
</FinInstnId>
</DbtrAgt>
<ChrgBr></ChrgBr>
<CdtTrfTxInf>
<PmtId>
<EndToEndId></EndToEndId>
</PmtId>
<Amt>
<InstdAmt Ccy="EUR"></InstdAmt>
</Amt>
<CdtrAgt>
<FinInstnId>
<BIC></BIC>
</FinInstnId>
</CdtrAgt>
<Cdtr>
<Nm></Nm>
<Id>
<OrgId>
<PrtryId>
<Id></Id>
</PrtryId>
</OrgId>
</Id>
</Cdtr>
<CdtrAcct>
<Id>
<IBAN></IBAN>
</Id>
</CdtrAcct>
<RmtInf>
<Ustrd></Ustrd>
</RmtInf>
</CdtTrfTxInf>
</PmtInf>
</pain.001.001.02>
</Document>
if somebody can help it will be nice.
Thanks
Reply
Answers (
2
)
Navigation in Outlook 2010 Solution module
Exception occurred while generating pdf from word document.