473,395 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

XML Serialization Problem with jagged array

I have the following class that declares a jagged array named
procedimentosRealizadosField()(). When I try to deserialize an XML
file into an object of this class all fields are loaded correctly,
except for the procedimentosRealizadosField()() which returns nothing.

Previously, I changed the declaration of the method from :

<System.Xml.Serialization.XmlArrayItemAttribute("p rocedimentosRevisao",
GetType(ct_procedimentoRevisaoProcedimentosRevisao ),
IsNullable:=False)_

to :

<System.Xml.Serialization.XmlArrayItemAttribute("p rocedimentosRevisao",
GetType(ct_procedimentoRevisaoProcedimentosRevisao ()),
IsNullable:=False)_

since I had this error message : CANNOT CONVERT TYPE
ct_procedimentoRevisaoProcedimentosRevisao() to
ct_procedimentoRevisaoProcedimentosRevisao. The error stopped by I
can't load the field accordingly.

I don't know what the problem might be. Can anyone help me ?
Thanks in advance.

Partial Public Class ct_guiaSP_SADTReapresentacao

Private identificacaoGuiaSADTSPField As ct_cabecalhoGuia

Private numeroGuiaPrincipalField As String

Private dadosAutorizacaoField As ct_autorizacaoGuia

Private dadosBeneficiarioField As ct_beneficiario

Private dadosSolicitanteField As ct_solicitante

Private prestadorExecutanteField As ct_contratado

Private indicacaoClinicaField As String

Private caraterAtendimentoField As st_eletivaEmergencia

Private dataHoraAtendimentoField As Date

Private dataHoraAtendimentoFieldSpecified As Boolean

Private numeroCNESField As String

Private diagnosticoGuiaField As ct_diagnosticoGuia

Private tipoSaidaField As st_tipoSaidaGuiaSADT

Private tipoAtendimentoField As st_tipoAtendimento

Private procedimentosRealizadosField()() As
ct_procedimentoRevisaoProcedimentosRevisao

Private outrasDespesasField() As ct_outrasDespesasRevisao

Private oPMSolicitadasField() As
ct_OPMSolicitadasOPMSolicitada

Private oPMUtilizadasField() As ct_OPMUtilizadasRevisao

Private valorTotalField As ct_valorTotalServicos

Private observacaoField As String

....

'''<remarks/>

<System.Xml.Serialization.XmlArrayItemAttribute("p rocedimentosRevisao",
GetType(ct_procedimentoRevisaoProcedimentosRevisao ()),
IsNullable:=False)_
Public Property procedimentosRealizados() As
ct_procedimentoRevisaoProcedimentosRevisao()()
Get
Return Me.procedimentosRealizadosField
End Get
Set(ByVal value As
ct_procedimentoRevisaoProcedimentosRevisao()())
Me.procedimentosRealizadosField = value
End Set
End Property

....

End Class

Feb 9 '07 #1
0 1972

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: xllx.relient.xllx | last post by:
Hi, I have two questions: 1.)Is it true that an rectangular array is really just an single dimensional array that lets itself be treated as a multi-dimensional array? For example the...
0
by: SaharImtiaz | last post by:
Hi there, I m trying to return an object (of my own written class) from a web service that contains jagged Arrays as public variables. Asp.Net is showing me the its serialized version on the...
4
by: Sahar | last post by:
Hi there, I m trying to return an object (of my own written class) from a web service that contains jagged Arrays as public variables. Asp.Net is showing me the its serialized version on the...
17
by: =?Utf-8?B?U2hhcm9u?= | last post by:
Hi Gurus, I need to transfer a jagged array of byte by reference to unmanaged function, The unmanaged code should changed the values of the array, and when the unmanaged function returns I need...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.