Need Help for Serialize XML document from XSD generated class

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="color:#1f497d Hi All,

<span style="color:#1f497d I have some problem in my project and I need your help and guidance.
<span style="color:#1f497d
<span style="color:#1f497d We want to create a read/write CCR and CCD XML file functionality in my project.
<span style="color:#1f497d
<span style="color:#1f497d Now we have successfully generated the Object Class from CCD schema file which is attached in mail.
<span style="color:#1f497d
<span style="color:#1f497d Now we want to Serialize the new XML document with any sample information like Purpose section, payers section, advance directive section etc.
<span style="color:#1f497d
<span style="color:#1f497d In the attached project file we are trying to create xml document with payers details.
<span style="color:#1f497d
<span style="color:#1f497d In the code first we get the component and create component and after that in component there is section so create section etc.
<span style="color:#1f497d
<span style="color:#1f497d We reference the SampleCCDDocument file for creating new XML file and trying to generate similar XML file with our code which is attached in the mail.
<span style="color:#1f497d
<span style="color:#1f497d However when we trying to create file we got the error message
<span style="color:#1f497d â <span style="color:red; background:none repeat scroll 0% 0% yellow
Object reference not set to an instance of an object <span style="color:#1f497d
â
<span style="color:#1f497d The most common error dot net gives in any application.
<span style="color:#1f497d
<span style="color:#1f497d So can you help to generate the XML file and provide your guidance where we had made mistake.
<span style="color:#1f497d
<p style="text-indent:-0.25in <span style="color:#1f497d <span>1)<span style="font:7pt "Times New Roman"
<span style="color:#1f497d Is CCD schema file is wrong?
<p style="text-indent:-0.25in <span style="color:#1f497d <span>2)<span style="font:7pt "Times New Roman"
<span style="color:#1f497d Is Generated class is wrong?
<p style="text-indent:-0.25in <span style="color:#1f497d <span>3)<span style="font:7pt "Times New Roman"
<span style="color:#1f497d Or something else?
<span style="color:#1f497d
<span style="color:#1f497d Waiting for your Kind Reply.
<span style="color:#1f497d
<span style="color:#1f497d You can find attachment http://serv6.enterupload.com:182/d/tsu7vapolsyvui2dxjlxpg3xuyzvnuxenv64ailvum/CCDCCR.rar
here <br/>

<span style="color:#1f497d Regards,
<span style="color:#1f497d Nishant

View the full article
 
Back
Top