I have a .NET MVC application that serializes the visual model by using XML Data Contracereasiser and XMLDictionaryWriter. The response XML is given below.
In this example, note that there are two copies of the same "note" object, for the first time the note appears, that's right. For the second time, all the stars have a "i: zero" attribute and a reference to the previous node where the same string appears.
Question:
- I think this is some kind of compression, where is it happening? In IIS
- How can I knit it?
Thank you for your help!
Tom
& lt; Note z: id = "2" & gt; & Lt; DateCreated & gt; 2011-03-16T11: 22: 30.2226663-07: 00 & lt; / DateCreated & gt; & Lt; DateModified & gt; 2011-03-16T11: 22: 30.2226663-07: 00 & lt; / DateModified & gt; & Lt; Deleted & gt; False & lt; / Deleted & gt; & Lt; PinnedToList & gt; True & lt; / PinnedToList & gt; & Lt; PinnedToTile & gt; False & lt; / PinnedToTile & gt; & Lt; Research & gt; 1 & lt; / Revision & gt; & Lt; TagText z: id = "3" & gt; # Todo # work & lt; / TagText> a???? & Lt; Tag z: id = "4" z: size = "2" & gt; a???? & Lt; Tag z: id = "5" & gt; & Lt; TagName z: id = "6" & gt; Tudo & lt; / TagName & gt; & Lt; UserId & gt; 3 & lt; / UserId> & Lt; / Tags & gt; a???? & Lt; Tag z: id = "7" & gt; & Lt; TagName z: id = "8" & gt; Work & lt; / TagName & gt; & Lt; UserId & gt; 3 & lt; / UserId> & Lt; / Tags & gt; & Lt; / Tags & gt; & Lt; Lesson z: id = "9" & gt; This is a sample note. & Lt; / Text & gt; & Lt; User i: nil = "true" /> & Lt; UserId & gt; 0 & lt; / UserId> & Lt; / Note & gt; a???? & Lt; Note z: id = "10" & gt; & Lt; DateCreated & gt; 2011-03-16T11: 22: 30.2226663-07: 00 & lt; / DateCreated & gt; & Lt; DateModified & gt; 2011-03-16T11: 22: 30.2226663-07: 00 & lt; / DateModified & gt; & Lt; Deleted & gt; False & lt; / Deleted & gt; & Lt; PinnedToList & gt; True & lt; / PinnedToList & gt; & Lt; PinnedToTile & gt; False & lt; / PinnedToTile & gt; & Lt; Research & gt; 1 & lt; / Revision & gt; & Lt; TagText z: riff = "3" i: nil = "true" /> a???? & Lt; Tag z: id = "11" z: size = "2" & gt; a???? & Lt; Tag z: id = "12" & gt; & Lt; TagName z: ref = "6" i: blue = "true" /> & Lt; UserId & gt; 3 & lt; / UserId> & Lt; / Tags & gt; a???? & Lt; Tag z: id = "13" & gt; & Lt; TagName z: ref = "8" i: nil = "true" /> & Lt; UserId & gt; 3 & lt; / UserId> & Lt; / Tags & gt; & Lt; / Tags & gt; & Lt; Lesson z: ref = "9" i: blue = "true" /> & lt; User i: nil = "true" /> & Lt; UserId & gt; 0 & lt; / UserId> & Lt; / Note & gt;This data-controller is working in full-graph mode. It is not compressed - this is the format to preserve only the object references. Turn on full-graph mode during Deserializing and it should work. This is a constructor logic for Data Contractor's Surgeor.
Comments
Post a Comment