Jump to content

Format xml file during serialization


Recommended Posts

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 by karthikin
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...