none
Regarding Merging XML Files.

    Question

  • HI , 

    I have a requirement where I have to merge the XML files after the mapping  in a loop. ( In orchestration) 

    I am doing that in a class library using Dataset to merge XML.  It was having some performance issues so I switched to the below code which is very fast.

                    XDocument xFileRoot = XDocument.Parse(Doc1.OuterXml);
                    XDocument xFileChild = XDocument.Parse(Doc2.OuterXml);

                    xFileRoot.Root.Add(xFileChild.Root.Elements());

    However after merging around 10 files,  my output file is having addional CRLF  in between the blank element which was not there incase of using dataset for merging the files. Is there anyway to handle this ? 

    


    Thanks, Varun

    Friday, March 10, 2017 2:24 PM

Answers

All replies