Solved

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

Posted on 2007-11-16
4
442 Views
Last Modified: 2012-08-13
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!
0
Comment
Question by:OddiC
  • 2
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
McExp earned 500 total points
Comment Utility
How about: -

using System.Collections.Generic;

List<String> test = new List<string>();
0
 

Author Comment

by:OddiC
Comment Utility
I am limited to 1.1 in my dev. environment  : (

Any other ideas??
0
 
LVL 16

Expert Comment

by:McExp
Comment Utility
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
 

Author Comment

by:OddiC
Comment Utility
I know it! Thanks for the tip anyhow. I will award the points as I did learn something new.. Thanks much!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now