Is there any way to replace [[ anyType xsi:type="xsd:string" ]] with a meaningful value for the One type the ArrayList contains?

I realize that ArrayLists can hold elements of more than one type. However, I have an ArrayList which I use only to store strings (I did not want to use reg. Array- ArrayList is more flexible for my needs). Anyways I am doing some Serialzation, and, the string values with the ArrayList element have the: anyType xsi:type="xsd:string"  identifier... Is there any way to specify a meaningful name (or at least remove all the xsi stuff?)?

Here is my class declaration that gets serialized. The strings I refer to are the items within an object of the Type below...

Public Class ProgramName
    <XmlElement(Type:=GetType(ArrayList))> _
    Public ProgramNames As ArrayList

....etc, etc, etc.


Is there anything I can do/try?

Thanks in advance to all!
OddiCAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
McExpConnect With a Mentor Commented:
How about: -

using System.Collections.Generic;

List<String> test = new List<string>();
0
 
OddiCAuthor Commented:
I am limited to 1.1 in my dev. environment  : (

Any other ideas??
0
 
McExpCommented:
Sorry, haven't done any XML work in 1.1, been using the 2.0 framework for the last 18 months, it's interesting how much functionality you take for granted when using it!
0
 
OddiCAuthor Commented:
I know it! Thanks for the tip anyhow. I will award the points as I did learn something new.. Thanks much!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.