Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
476 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 1500 total points
ID: 20302212
How about: -

using System.Collections.Generic;

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

Author Comment

by:OddiC
ID: 20302283
I am limited to 1.1 in my dev. environment  : (

Any other ideas??
0
 
LVL 16

Expert Comment

by:McExp
ID: 20302354
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
ID: 20312974
I know it! Thanks for the tip anyhow. I will award the points as I did learn something new.. Thanks much!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

972 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