I have created a strongly typed class from an XML document using XSD.EXE code generator. First I created the XSD file, then I created the Class from it.
The class builds fine but I am running into a massive wall when it comes to populating it. The class contains arrays of arrays ...eg ...
Public Property DocumentDescriptiveMetadata() As SubmissionDocumentDocumentDescriptiveMetadataDocumentID()()
I have attached the entire solution that has two of the classes that I generated.
My first effort was to simply go in and populate the header. "courtheader".
It contains the Submission Organization and the Submission Document
This is what the XML for the Header will look like.
<cch:court>
−
<cch:Header>
−
<hj:SubmissionSubmitter.Organization>
−
<hj:OrganizationORIID>
<hj:ID>GACCA0000</hj:ID>
</hj:OrganizationORIID>
</hj:SubmissionSubmitter.Organization>
−
<hj:SubmissionDocument>
−
<hj
ocumentDescriptiveMetadata>
−
<hj
ocumentID>
<hj:ID>0000001033803</hj:ID>
</hj
ocumentID>
</hj
ocumentDescriptiveMetadata>
−
<hj
ocumentSource.Organization>
−
<hj:OrganizationORIID>
<hj:ID>GA115015J</hj:ID>
</hj:OrganizationORIID>
</hj
ocumentSource.Organization>
</hj:SubmissionDocument>
</cch:Header>
I was able to load the "SubmissionSubmitterOrganization" node, but the "SubmissionDocument" is kicking my butt. All I need is to see is an example of how to create the objects needed to populate the arrays.
Anyone willing to help with this wins a prize!!!!
Thanks
The class builds fine but I am running into a massive wall when it comes to populating it. The class contains arrays of arrays ...eg ...
Public Property DocumentDescriptiveMetadata() As SubmissionDocumentDocumentDescriptiveMetadataDocumentID()()
I have attached the entire solution that has two of the classes that I generated.
My first effort was to simply go in and populate the header. "courtheader".
It contains the Submission Organization and the Submission Document
This is what the XML for the Header will look like.
<cch:court>
−
<cch:Header>
−
<hj:SubmissionSubmitter.Organization>
−
<hj:OrganizationORIID>
<hj:ID>GACCA0000</hj:ID>
</hj:OrganizationORIID>
</hj:SubmissionSubmitter.Organization>
−
<hj:SubmissionDocument>
−
<hj
−
<hj
<hj:ID>0000001033803</hj:ID>
</hj
</hj
−
<hj
−
<hj:OrganizationORIID>
<hj:ID>GA115015J</hj:ID>
</hj:OrganizationORIID>
</hj
</hj:SubmissionDocument>
</cch:Header>
I was able to load the "SubmissionSubmitterOrganization" node, but the "SubmissionDocument" is kicking my butt. All I need is to see is an example of how to create the objects needed to populate the arrays.
Anyone willing to help with this wins a prize!!!!
Thanks
Attachments
Last edited by a moderator: