Why the flat file generated by flat file assembler is broken down to multiple lines when it is supposed to be in one line?
-
Friday, September 14, 2012 11:42 PM
In my orchestration, I have a variable as XmlDocument. When I load xml data into this variable, I set its PreserveWhitespace to true. In the process, I modified its data, added more rows of xml data into it. At the end, in the Message Assignment shape, I set my output message as this variable and send out to my port which uses FF Assembler pipeline component. I also print out the xml content of this variable in DbgView.
The problem is the data that is supposed to be in one line is broken down to multiple lines by empty xml element. I have set PreserveWhitespace to true at the beginning of loading xml initial data. I also checked the finial xml output in DbgView, there is \r\n in its content. Why my data is still not in one line?
Thanks in advance!!!
All Replies
-
Saturday, September 15, 2012 2:25 PM
I think during xml content modification, the PreserveWhitespace property got messed up. So before sending out the message, I created a new xml document and set PreserveWhitespace to true, then load the final version of the modified xml content and assign thhis new xml document to the message. This solved my problem.
- Marked As Answer by s liu Saturday, September 15, 2012 2:25 PM
-
Monday, September 17, 2012 3:26 AMModerator
Glad to see you have solved your issue. Thanks you for sharing the solution.
Cheers.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code Framework

