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
443 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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