karthikin 1 Posted October 21, 2012 Report Share Posted October 21, 2012 (edited) 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?? Edited October 21, 2012 by karthikin Quote Link to post Share on other sites
Ingolme 1,019 Posted October 21, 2012 Report Share Posted October 21, 2012 It depends on what you're using to manipulate the XML.Why do you need to? What's important in XML is the data, which hasn't changed. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.