Jump to content

Format xml file during serialization


karthikin

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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...