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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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