Click here to Skip to main content
15,917,320 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: URL Rewriting ?? Pin
Sanjay Kunjam13-Jul-11 5:36
Sanjay Kunjam13-Jul-11 5:36 
Questionexport dataset to excel without using htmltextwriter Pin
sujitdeshpande_1913-Jul-11 3:49
sujitdeshpande_1913-Jul-11 3:49 
QuestionImport Data From sql to Excel using Microsoft.Office.Interop Pin
sujitdeshpande_1912-Jul-11 22:18
sujitdeshpande_1912-Jul-11 22:18 
SuggestionRe: Import Data From sql to Excel using Microsoft.Office.Interop Pin
Shameel12-Jul-11 23:44
professionalShameel12-Jul-11 23:44 
QuestionValidating Email without the use of regular Expression ? Pin
Rameez Raja12-Jul-11 20:14
Rameez Raja12-Jul-11 20:14 
SuggestionRe: Validating Email without the use of regular Expression ? Pin
Blue_Boy12-Jul-11 21:07
Blue_Boy12-Jul-11 21:07 
AnswerEmail validation WebService Pin
David Mujica13-Jul-11 2:52
David Mujica13-Jul-11 2:52 
QuestionXML Deserialization Pin
indian14312-Jul-11 9:58
indian14312-Jul-11 9:58 
Hi All,

I have an xml document in which I have xml elements as below. When I deserialize them its deserializing correctly but few attributes are missing from the existing application (actually we are developing a new application whose results should match with existing application). Here we are deserializing it in to objects and then again serializing those objects in xml back. There is little bit variation in the data in new system.
But what I am missing is, attributes like xsi:type="Reference", xsi:nil="true", xsi:nil="true" etc. How can I make changes in my Deserialization or serialization process so that my result would have attributes like this in their xml elements

Thanks in advance.

The xml element to be deserialized
----------------------------------
<Addresses>
<Address AddressCurrent="Current" HouseNumber="9541" PreDirectional="SE" StreetName="FIR" PostDirectional="" StreetType="TER" UnitType="APT" UnitNumber="1085" City="Beatty" State="OR" Zip="97000">
<Source code="F" IsFile="false" />
<Qualifier code="1" />
<Classification code="1" />
<DateReported>2002-08-01</DateReported>8387 E ELM CT</Address>
<Address AddressCurrent="Previous" HouseNumber="3962" PreDirectional="E" StreetName="OAK" PostDirectional="" StreetType="TPKE" UnitType="APT" UnitNumber="E215" City="Mitchell" State="OR" Zip="97000">
<Source code="F" IsFile="false" />
<Qualifier code="1" />
<Classification code="1" />
<DateReported>2007-06-01</DateReported>8571 N BAMBOO ST</Address>
<Address AddressCurrent="Previous" HouseNumber="4484" PreDirectional="NE" StreetName="BIRCH" PostDirectional="" StreetType="LN" UnitType="APT" UnitNumber="3" City="Shedd" State="OR" Zip="97000">
<Source code="F" IsFile="false" />
<Qualifier code="1" />
<Classification code="1" />2539 NW FIR CT</Address>
</Addresses>


And below are the results
These following aatribtes that are missing my application.

* <Address xsi:type="Reference">
* <DateReported xsi:nil="true" />
* <DateResident xsi:nil="true" />

*<Street2 /> is shown in QA, but not in Production Delta.

****** QUTU Delta Report in my application
------------------------------------------
- <Addresses>
- <Address>
<Bureau>TransUnion</Bureau>
<AddressType>CurrentAddress</AddressType>
<City>Beatty</City>
<State>OR</State>
<Street1>9541 SE FIR TER APT 1085</Street1>
<Street2 />
<Zip>97000</Zip>
</Address>
- <Address>
<Bureau>TransUnion</Bureau>
<AddressType>PreviousAddress</AddressType>
<City>Mitchell</City>
<State>OR</State>
<Street1>3962 E OAK TPKE APT E215</Street1>
<Street2 />
<Zip>97000</Zip>
</Address>
- <Address>
<Bureau>TransUnion</Bureau>
<AddressType>PreviousAddress2</AddressType>
<City>Shedd</City>
<State>OR</State>
<Street1>4484 NE BIRCH LN APT 3</Street1>
<Street2 />
<Zip>97000</Zip>
</Address>
</Addresses>

***** QUTU Delta Report in Existing System
------------------------------------------

- <Addresses>
- <Address xsi:type="Reference">
<Bureau>TransUnion</Bureau>
<AddressType>CurrentAddress</AddressType>
<City>Monroe</City>
<State>OR</State>
<Street1>2971 S OAK TPKE</Street1>
<Zip>97000</Zip>
<DateReported xsi:nil="true" />
<DateResident xsi:nil="true" />
</Address>
- <Address xsi:type="Reference">
<Bureau>TransUnion</Bureau>
<AddressType>PreviousAddress</AddressType>
<City>Coos Bay</City>
<State>OR</State>
<Street1>7080 SW CEDAR LN</Street1>
<Zip>97000</Zip>
<DateReported xsi:nil="true" />
<DateResident xsi:nil="true" />
</Address>
- <Address xsi:type="Reference">
<Bureau>TransUnion</Bureau>
<AddressType>PreviousAddress2</AddressType>
<City>Phoenix</City>
<State>OR</State>
<Street1>5050 S BIRCH TER</Street1>
<Zip>97000</Zip>
<DateReported xsi:nil="true" />
<DateResident xsi:nil="true" />
</Address>
</Addresses>
Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

QuestionOnFocus server side event for textbox in datagrid Pin
minckle12-Jul-11 8:53
minckle12-Jul-11 8:53 
AnswerRe: OnFocus server side event for textbox in datagrid Pin
Viral Upadhyay12-Jul-11 23:36
Viral Upadhyay12-Jul-11 23:36 
Questionresolving class using interface using UNITY container to implement ioc pattern???? Pin
siva45512-Jul-11 7:43
siva45512-Jul-11 7:43 
QuestionRepeater Control - formatting columns problem Pin
Richard Blythe12-Jul-11 6:25
Richard Blythe12-Jul-11 6:25 
QuestionDeploying website on Windows XP computer? Pin
kbalias12-Jul-11 1:13
kbalias12-Jul-11 1:13 
AnswerRe: Deploying website on Windows XP computer? Pin
Pete O'Hanlon12-Jul-11 1:22
mvePete O'Hanlon12-Jul-11 1:22 
GeneralRe: Deploying website on Windows XP computer? Pin
kbalias12-Jul-11 19:44
kbalias12-Jul-11 19:44 
GeneralRe: Deploying website on Windows XP computer? Pin
Pete O'Hanlon12-Jul-11 23:25
mvePete O'Hanlon12-Jul-11 23:25 
QuestionRegex Pin
Morgs Morgan11-Jul-11 21:42
Morgs Morgan11-Jul-11 21:42 
AnswerRe: Regex Pin
Pete O'Hanlon11-Jul-11 21:50
mvePete O'Hanlon11-Jul-11 21:50 
GeneralRe: Regex Pin
Morgs Morgan11-Jul-11 22:06
Morgs Morgan11-Jul-11 22:06 
QuestionGridview merge cells with edit button Pin
C#Coudou11-Jul-11 15:11
C#Coudou11-Jul-11 15:11 
Questionpass data between different views in MVC in c#.net Pin
siva45511-Jul-11 7:12
siva45511-Jul-11 7:12 
AnswerRe: pass data between different views in MVC in c#.net Pin
Anurag Gandhi11-Jul-11 20:28
professionalAnurag Gandhi11-Jul-11 20:28 
QuestionCustom Configuration section Pin
indian14311-Jul-11 6:02
indian14311-Jul-11 6:02 
AnswerRe: Custom Configuration section Pin
GenJerDan11-Jul-11 6:11
GenJerDan11-Jul-11 6:11 
GeneralRe: Custom Configuration section Pin
indian14311-Jul-11 6:25
indian14311-Jul-11 6:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.