473,406 Members | 2,707 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,406 software developers and data experts.

Still Problems Serializing Arrays

I am still stuck trying to create a Class to use for exporting and importing
array data to/from XML. The format of the XML that I want to import/export
is shown below as is the Class and the code I am using to create a sample
XML file. I am trying to dimension the ArrayOfJudgeEntity to have two sets
of the JudgeTableEntity values. When I run the code I get an error that the
XML is not correct.

I jsut can't get my head around the array serialization.

Any help is much appreciated

Wayne

=================== Desired XML ==============
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfJudgeTableEntity xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<JudgeTableEntity>
<JudgeId>63371991-cdf9-4cc5-99c1-a42c599498f8</JudgeId>
<JudgeFirstName>Kristen</JudgeFirstName>
<JudgeLastName>O'Melia</JudgeLastName>
<JudgeType>Equipment</JudgeType>
</JudgeTableEntity>
<JudgeTableEntity>
<JudgeId>ce2c0c6e-4094-43da-9d8c-9726d81b017e</JudgeId>
<JudgeFirstName>Smith</JudgeFirstName>
<JudgeLastName>Dan</JudgeLastName>
<JudgeType>Movement</JudgeType>
</JudgeTableEntity>
</ArrayOfJudgeTableEntity>

============= Class Definition =============
Public Class ArrayOfJudgeTableEntity
'<XmlArray("JudgeTableEntity"), XmlArrayItem("JudgeTableEntity",
IsNullable:=True)> Public JudgeTableEntityX() As JudgeTableEntity
<XmlElement("JudgeTableEntity", IsNullable:=True)> Public
JudgeTableEntity()
Public Sub New()
End Sub
Public Sub New(ByVal j As Integer)
ReDim Preserve JudgeTableEntity(j)
End Sub 'New
End Class
Public Class JudgeTableEntity
<XmlElement("JudgeID")> Public JudgeID As String
<XmlElement("JudgeFirstName")> Public JudgeFirstName As String
<XmlElement("JudgeLastName")> Public JudgeLastName As String
<XmlElement("JudgeType")> Public JudgeType As String
Public Sub New()
End Sub 'New
Public Sub New(ByVal id As String, ByVal fn As String, ByVal ln As
String, ByVal type As String)
JudgeID = id
JudgeType = type
JudgeFirstName = fn
JudgeLastName = ln
End Sub
End Class

================ Code to Build Sample Output =================
Dim Judge1 As New JudgeTableEntity("ID1", "Shirlee", "Whitcomb", "GE")
Dim Judge2 As New JudgeTableEntity("ID2", "Joe", "Courtney", "TaP")
Dim array2 As New ArrayOfJudgeTableEntity(1)
array2.JudgeTableEntity(0) = Judge1
array2.JudgeTableEntity(1) = Judge2
Dim ser As New XmlSerializer(GetType(ArrayOfJudgeTableEntity))
AddHandler ser.UnknownNode, AddressOf serializer_UnknownNode
AddHandler ser.UnknownElement, AddressOf serializer_UnknownElement
Dim writer As New XmlTextWriter("c:\Temp\judgestest.xml",
System.Text.Encoding.UTF8)
' write a human readable file
writer.Formatting = Formatting.Indented
Try
ser.Serialize(writer, array2)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
'End
End Try
writer.Close()
Nov 12 '05 #1
4 2700
Wayne,

I took your sample XML, inferred a schema with xsd.exe, which ships as part
of the .NET framework, and generated classes that can deserialize XML that
conforms to the schema ... see code below.

There are other tools to infer schemas and create .NET classes for
serialization as well. Take a look at the XML tools page on gotdotnet for the
links.

Each tool as their strengths and weaknesses, but they may get you started in
the right direction.
You're issue right now seems to be that you are trying to deserialize an
array of ArrayOfJudgeTableEntities. Does the XML you are trying to
deserialize contain a root element for the ArrayOfJudgeTableEntities items or
are you reading a continuous stream to ArrayOfJudgeTableEntities elements,
which would be an XML document fragment, not a well formed document.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

//
// This source code was auto-generated by xsd, Version=1.1.4322.573.
//
using System.Xml.Serialization;
/// <remarks/>
[System.Xml.Serialization.XmlRootAttribute(Namespac e="", IsNullable=false)]
public class ArrayOfJudgeTableEntity {

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Judg eTableEntity",
Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public ArrayOfJudgeTableEntityJudgeTableEntity[] Items;
}

/// <remarks/>
public class ArrayOfJudgeTableEntityJudgeTableEntity {

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string JudgeId;

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string JudgeFirstName;

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string JudgeLastName;

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string JudgeType;
}

"Wayne Wengert" wrote:
I am still stuck trying to create a Class to use for exporting and importing
array data to/from XML. The format of the XML that I want to import/export
is shown below as is the Class and the code I am using to create a sample
XML file. I am trying to dimension the ArrayOfJudgeEntity to have two sets
of the JudgeTableEntity values. When I run the code I get an error that the
XML is not correct.

I jsut can't get my head around the array serialization.

Any help is much appreciated

Wayne

=================== Desired XML ==============
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfJudgeTableEntity xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<JudgeTableEntity>
<JudgeId>63371991-cdf9-4cc5-99c1-a42c599498f8</JudgeId>
<JudgeFirstName>Kristen</JudgeFirstName>
<JudgeLastName>O'Melia</JudgeLastName>
<JudgeType>Equipment</JudgeType>
</JudgeTableEntity>
<JudgeTableEntity>
<JudgeId>ce2c0c6e-4094-43da-9d8c-9726d81b017e</JudgeId>
<JudgeFirstName>Smith</JudgeFirstName>
<JudgeLastName>Dan</JudgeLastName>
<JudgeType>Movement</JudgeType>
</JudgeTableEntity>
</ArrayOfJudgeTableEntity>

============= Class Definition =============
Public Class ArrayOfJudgeTableEntity
'<XmlArray("JudgeTableEntity"), XmlArrayItem("JudgeTableEntity",
IsNullable:=True)> Public JudgeTableEntityX() As JudgeTableEntity
<XmlElement("JudgeTableEntity", IsNullable:=True)> Public
JudgeTableEntity()
Public Sub New()
End Sub
Public Sub New(ByVal j As Integer)
ReDim Preserve JudgeTableEntity(j)
End Sub 'New
End Class
Public Class JudgeTableEntity
<XmlElement("JudgeID")> Public JudgeID As String
<XmlElement("JudgeFirstName")> Public JudgeFirstName As String
<XmlElement("JudgeLastName")> Public JudgeLastName As String
<XmlElement("JudgeType")> Public JudgeType As String
Public Sub New()
End Sub 'New
Public Sub New(ByVal id As String, ByVal fn As String, ByVal ln As
String, ByVal type As String)
JudgeID = id
JudgeType = type
JudgeFirstName = fn
JudgeLastName = ln
End Sub
End Class

================ Code to Build Sample Output =================
Dim Judge1 As New JudgeTableEntity("ID1", "Shirlee", "Whitcomb", "GE")
Dim Judge2 As New JudgeTableEntity("ID2", "Joe", "Courtney", "TaP")
Dim array2 As New ArrayOfJudgeTableEntity(1)
array2.JudgeTableEntity(0) = Judge1
array2.JudgeTableEntity(1) = Judge2
Dim ser As New XmlSerializer(GetType(ArrayOfJudgeTableEntity))
AddHandler ser.UnknownNode, AddressOf serializer_UnknownNode
AddHandler ser.UnknownElement, AddressOf serializer_UnknownElement
Dim writer As New XmlTextWriter("c:\Temp\judgestest.xml",
System.Text.Encoding.UTF8)
' write a human readable file
writer.Formatting = Formatting.Indented
Try
ser.Serialize(writer, array2)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
'End
End Try
writer.Close()

Nov 12 '05 #2
Christoph;

Thanks for the response. You are right that I need to learn more about the
available tools. I'll check out that link and review your suggestions.

The ArrayOfJudgeTableEntities is the root element (occurs only once). There
are many JudgeTableEntity sets within that root.

Wayne
"Christoph Schittko [MVP]" <Christoph Schittko
[MVP]@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
Wayne,

I took your sample XML, inferred a schema with xsd.exe, which ships as part of the .NET framework, and generated classes that can deserialize XML that
conforms to the schema ... see code below.

There are other tools to infer schemas and create .NET classes for
serialization as well. Take a look at the XML tools page on gotdotnet for the links.

Each tool as their strengths and weaknesses, but they may get you started in the right direction.
You're issue right now seems to be that you are trying to deserialize an
array of ArrayOfJudgeTableEntities. Does the XML you are trying to
deserialize contain a root element for the ArrayOfJudgeTableEntities items or are you reading a continuous stream to ArrayOfJudgeTableEntities elements,
which would be an XML document fragment, not a well formed document.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
//--------------------------------------------------------------------------
---- // <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated.
// </autogenerated>
//--------------------------------------------------------------------------
----
//
// This source code was auto-generated by xsd, Version=1.1.4322.573.
//
using System.Xml.Serialization;
/// <remarks/>
[System.Xml.Serialization.XmlRootAttribute(Namespac e="", IsNullable=false)] public class ArrayOfJudgeTableEntity {

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Judg eTableEntity",
Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public ArrayOfJudgeTableEntityJudgeTableEntity[] Items;
}

/// <remarks/>
public class ArrayOfJudgeTableEntityJudgeTableEntity {

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSche
maForm.Unqualified)] public string JudgeId;

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSche
maForm.Unqualified)] public string JudgeFirstName;

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSche
maForm.Unqualified)] public string JudgeLastName;

/// <remarks/>

[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSche
maForm.Unqualified)] public string JudgeType;
}

"Wayne Wengert" wrote:
I am still stuck trying to create a Class to use for exporting and importing array data to/from XML. The format of the XML that I want to import/export is shown below as is the Class and the code I am using to create a sample XML file. I am trying to dimension the ArrayOfJudgeEntity to have two sets of the JudgeTableEntity values. When I run the code I get an error that the XML is not correct.

I jsut can't get my head around the array serialization.

Any help is much appreciated

Wayne

=================== Desired XML ==============
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfJudgeTableEntity xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<JudgeTableEntity>
<JudgeId>63371991-cdf9-4cc5-99c1-a42c599498f8</JudgeId>
<JudgeFirstName>Kristen</JudgeFirstName>
<JudgeLastName>O'Melia</JudgeLastName>
<JudgeType>Equipment</JudgeType>
</JudgeTableEntity>
<JudgeTableEntity>
<JudgeId>ce2c0c6e-4094-43da-9d8c-9726d81b017e</JudgeId>
<JudgeFirstName>Smith</JudgeFirstName>
<JudgeLastName>Dan</JudgeLastName>
<JudgeType>Movement</JudgeType>
</JudgeTableEntity>
</ArrayOfJudgeTableEntity>

============= Class Definition =============
Public Class ArrayOfJudgeTableEntity
'<XmlArray("JudgeTableEntity"), XmlArrayItem("JudgeTableEntity",
IsNullable:=True)> Public JudgeTableEntityX() As JudgeTableEntity
<XmlElement("JudgeTableEntity", IsNullable:=True)> Public
JudgeTableEntity()
Public Sub New()
End Sub
Public Sub New(ByVal j As Integer)
ReDim Preserve JudgeTableEntity(j)
End Sub 'New
End Class
Public Class JudgeTableEntity
<XmlElement("JudgeID")> Public JudgeID As String
<XmlElement("JudgeFirstName")> Public JudgeFirstName As String
<XmlElement("JudgeLastName")> Public JudgeLastName As String
<XmlElement("JudgeType")> Public JudgeType As String
Public Sub New()
End Sub 'New
Public Sub New(ByVal id As String, ByVal fn As String, ByVal ln As
String, ByVal type As String)
JudgeID = id
JudgeType = type
JudgeFirstName = fn
JudgeLastName = ln
End Sub
End Class

================ Code to Build Sample Output =================
Dim Judge1 As New JudgeTableEntity("ID1", "Shirlee", "Whitcomb", "GE")
Dim Judge2 As New JudgeTableEntity("ID2", "Joe", "Courtney", "TaP") Dim array2 As New ArrayOfJudgeTableEntity(1)
array2.JudgeTableEntity(0) = Judge1
array2.JudgeTableEntity(1) = Judge2
Dim ser As New XmlSerializer(GetType(ArrayOfJudgeTableEntity))
AddHandler ser.UnknownNode, AddressOf serializer_UnknownNode
AddHandler ser.UnknownElement, AddressOf serializer_UnknownElement Dim writer As New XmlTextWriter("c:\Temp\judgestest.xml",
System.Text.Encoding.UTF8)
' write a human readable file
writer.Formatting = Formatting.Indented
Try
ser.Serialize(writer, array2)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
'End
End Try
writer.Close()

Nov 12 '05 #3
Wayne,

In general, you should always be able to deserialize XML written with
the XmlSerializer into instances of the same classes you used to
serialize.
Did you get it to work or do you still have problems? On a side note,
I'm not a VB expert, but does your code compile with Option Strict on?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: Wayne Wengert [mailto:wa***************@wengert.com]
Posted At: Friday, January 28, 2005 8:41 AM
Posted To: microsoft.public.dotnet.xml
Conversation: Still Problems Serializing Arrays
Subject: Still Problems Serializing Arrays

I am still stuck trying to create a Class to use for exporting and
importing
array data to/from XML. The format of the XML that I want to import/export is shown below as is the Class and the code I am using to create a sample XML file. I am trying to dimension the ArrayOfJudgeEntity to have two sets of the JudgeTableEntity values. When I run the code I get an error that the
XML is not correct.

I jsut can't get my head around the array serialization.

Any help is much appreciated

Wayne

=================== Desired XML ==============
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfJudgeTableEntity xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<JudgeTableEntity>
<JudgeId>63371991-cdf9-4cc5-99c1-a42c599498f8</JudgeId>
<JudgeFirstName>Kristen</JudgeFirstName>
<JudgeLastName>O'Melia</JudgeLastName>
<JudgeType>Equipment</JudgeType>
</JudgeTableEntity>
<JudgeTableEntity>
<JudgeId>ce2c0c6e-4094-43da-9d8c-9726d81b017e</JudgeId>
<JudgeFirstName>Smith</JudgeFirstName>
<JudgeLastName>Dan</JudgeLastName>
<JudgeType>Movement</JudgeType>
</JudgeTableEntity>
</ArrayOfJudgeTableEntity>

============= Class Definition =============
Public Class ArrayOfJudgeTableEntity
'<XmlArray("JudgeTableEntity"), XmlArrayItem("JudgeTableEntity",
IsNullable:=True)> Public JudgeTableEntityX() As JudgeTableEntity
<XmlElement("JudgeTableEntity", IsNullable:=True)> Public
JudgeTableEntity()
Public Sub New()
End Sub
Public Sub New(ByVal j As Integer)
ReDim Preserve JudgeTableEntity(j)
End Sub 'New
End Class
Public Class JudgeTableEntity
<XmlElement("JudgeID")> Public JudgeID As String
<XmlElement("JudgeFirstName")> Public JudgeFirstName As String
<XmlElement("JudgeLastName")> Public JudgeLastName As String
<XmlElement("JudgeType")> Public JudgeType As String
Public Sub New()
End Sub 'New
Public Sub New(ByVal id As String, ByVal fn As String, ByVal ln As
String, ByVal type As String)
JudgeID = id
JudgeType = type
JudgeFirstName = fn
JudgeLastName = ln
End Sub
End Class

================ Code to Build Sample Output =================
Dim Judge1 As New JudgeTableEntity("ID1", "Shirlee", "Whitcomb", "GE")
Dim Judge2 As New JudgeTableEntity("ID2", "Joe", "Courtney",
"TaP")
Dim array2 As New ArrayOfJudgeTableEntity(1)
array2.JudgeTableEntity(0) = Judge1
array2.JudgeTableEntity(1) = Judge2
Dim ser As New XmlSerializer(GetType(ArrayOfJudgeTableEntity))
AddHandler ser.UnknownNode, AddressOf serializer_UnknownNode
AddHandler ser.UnknownElement, AddressOf serializer_UnknownElement Dim writer As New XmlTextWriter("c:\Temp\judgestest.xml",
System.Text.Encoding.UTF8)
' write a human readable file
writer.Formatting = Formatting.Indented
Try
ser.Serialize(writer, array2)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
'End
End Try
writer.Close()

Nov 12 '05 #4
Christoph;

Not working yet - I have another crisis that is taking most of my time for
the next day or so. Yes, Option Strict is on.

Thanks for the continued help!

Wayne

"Christoph Schittko [MVP]" <IN**********@austin.rr.com> wrote in message
news:u0*************@TK2MSFTNGP14.phx.gbl...
Wayne,

In general, you should always be able to deserialize XML written with
the XmlSerializer into instances of the same classes you used to
serialize.
Did you get it to work or do you still have problems? On a side note,
I'm not a VB expert, but does your code compile with Option Strict on?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko
-----Original Message-----
From: Wayne Wengert [mailto:wa***************@wengert.com]
Posted At: Friday, January 28, 2005 8:41 AM
Posted To: microsoft.public.dotnet.xml
Conversation: Still Problems Serializing Arrays
Subject: Still Problems Serializing Arrays

I am still stuck trying to create a Class to use for exporting and
importing
array data to/from XML. The format of the XML that I want to

import/export
is shown below as is the Class and the code I am using to create a

sample
XML file. I am trying to dimension the ArrayOfJudgeEntity to have two

sets
of the JudgeTableEntity values. When I run the code I get an error

that
the
XML is not correct.

I jsut can't get my head around the array serialization.

Any help is much appreciated

Wayne

=================== Desired XML ==============
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfJudgeTableEntity xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<JudgeTableEntity>
<JudgeId>63371991-cdf9-4cc5-99c1-a42c599498f8</JudgeId>
<JudgeFirstName>Kristen</JudgeFirstName>
<JudgeLastName>O'Melia</JudgeLastName>
<JudgeType>Equipment</JudgeType>
</JudgeTableEntity>
<JudgeTableEntity>
<JudgeId>ce2c0c6e-4094-43da-9d8c-9726d81b017e</JudgeId>
<JudgeFirstName>Smith</JudgeFirstName>
<JudgeLastName>Dan</JudgeLastName>
<JudgeType>Movement</JudgeType>
</JudgeTableEntity>
</ArrayOfJudgeTableEntity>

============= Class Definition =============
Public Class ArrayOfJudgeTableEntity
'<XmlArray("JudgeTableEntity"), XmlArrayItem("JudgeTableEntity",
IsNullable:=True)> Public JudgeTableEntityX() As JudgeTableEntity
<XmlElement("JudgeTableEntity", IsNullable:=True)> Public
JudgeTableEntity()
Public Sub New()
End Sub
Public Sub New(ByVal j As Integer)
ReDim Preserve JudgeTableEntity(j)
End Sub 'New
End Class
Public Class JudgeTableEntity
<XmlElement("JudgeID")> Public JudgeID As String
<XmlElement("JudgeFirstName")> Public JudgeFirstName As String
<XmlElement("JudgeLastName")> Public JudgeLastName As String
<XmlElement("JudgeType")> Public JudgeType As String
Public Sub New()
End Sub 'New
Public Sub New(ByVal id As String, ByVal fn As String, ByVal ln As
String, ByVal type As String)
JudgeID = id
JudgeType = type
JudgeFirstName = fn
JudgeLastName = ln
End Sub
End Class

================ Code to Build Sample Output =================
Dim Judge1 As New JudgeTableEntity("ID1", "Shirlee", "Whitcomb", "GE")
Dim Judge2 As New JudgeTableEntity("ID2", "Joe", "Courtney",
"TaP")
Dim array2 As New ArrayOfJudgeTableEntity(1)
array2.JudgeTableEntity(0) = Judge1
array2.JudgeTableEntity(1) = Judge2
Dim ser As New XmlSerializer(GetType(ArrayOfJudgeTableEntity))
AddHandler ser.UnknownNode, AddressOf serializer_UnknownNode
AddHandler ser.UnknownElement, AddressOf

serializer_UnknownElement
Dim writer As New XmlTextWriter("c:\Temp\judgestest.xml",
System.Text.Encoding.UTF8)
' write a human readable file
writer.Formatting = Formatting.Indented
Try
ser.Serialize(writer, array2)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
'End
End Try
writer.Close()


Nov 12 '05 #5

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

Similar topics

5
by: François Miville-Dechêne | last post by:
You say in the definition of mappings that at present Python has only one type of it, the dictionnary. I suggest another one, the sparse array, where absence of key would mean not absence of...
2
by: -Steve- | last post by:
Okay I have a bunch of code below. Hope it comes across readable. The problem I'm having is that in the lines under main(): cout << a << endl; Is going into the code for IntArray(const...
1
by: dotNetDave | last post by:
I'm trying to create xml seriaizable collection class (below), but the xml keeps coming out wrong. In the resulting xml from the web service (below) the "ArrayOfAlarmProcessor" tag should really be...
0
by: Ante Smolcic | last post by:
Hi all, I have an ArrayList that contains items of type A. I declared the XmlArrayItem atribute for that type. Now I have an derived type B (from A) also contained in the ArrayList but I get...
0
by: Alex Clark | last post by:
Hi all, Apologies for the cross-post but I can't determine if this is a VS .NET problem or a VB.NET language issue. I'm using .NET 1.1 SP1, VS 2003 EA, VB.NET. I'm coding a custom component...
1
by: Alex Clark | last post by:
Hi all, Apologies for the cross-post but I can't determine if this is a VS .NET problem or a VB.NET language issue. I'm using .NET 1.1 SP1, VS 2003 EA, VB.NET. I'm coding a custom component...
4
by: mookid8000 | last post by:
Good day group! I have created a nice filtering plugin system, where all filters derive from a Filter class, and they pass a PictureData object between them. I have a problem though. I am able...
2
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hi, I know this will sound like a lot of hand waving, and I'll be glad to supply some sample code if necessary, but I thought something obvious might jump out at someone without doing so. ...
0
by: dph5010 | last post by:
I'm trying to make an object that will reflect the response from isbndb.com's API so I can serialize the results into my code. Right now I have code that works, however, the structure isn't quite the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.