xml serialization, whitespace


i have following serialization method:



    private duty serializedata(byval information cdata) string
information isnot zero then
low xml_stream new memorystream()
low sr streamreader
low xs new xmlserializer(gettype(cdata))
xml_stream = new memorystream()

try
xs.serialize(xml_stream, data)
xml_stream.position = 0

sr = new streamreader(xml_stream)
relapse sr.readtoend()
finally
sr isnot zero following sr.close()
xml_stream.close()
finish try

else
relapse "no data"
finish if
finish function


however advantage xml nested elements indented. there proceed close off serializer, i need only run reinstate slight absolved all?



essentially, i wish is:



<root><child1>data</child1><child2>data</child2></root>


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?