Format xml file during serialization in XML Posted October 21, 2012 · Edited October 21, 2012 by karthikin This is my input xml file: <MyTest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.test.com/test"> <MyHubs xsi:nil="true" /><MyLanes xsi:nil="true" /> When i serilaize it i'm getting the output xml in this format: <MyTest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.test.com/test"> <MyHubs /><MyLanes/> How can i maintain the same format for the output xml file as exactly as the input file??
Format xml file during serialization
in XML
Posted · Edited by karthikin
This is my input xml file:
When i serilaize it i'm getting the output xml in this format:
How can i maintain the same format for the output xml file as exactly as the input file??