Click here to Skip to main content
15,896,207 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: WMI, Win32_Process or Process class question with IE Pin
Dave Kreskowiak16-Mar-07 7:00
mveDave Kreskowiak16-Mar-07 7:00 
GeneralRe: WMI, Win32_Process or Process class question with IE Pin
TenmanS1417-Mar-07 2:52
TenmanS1417-Mar-07 2:52 
QuestionCompitable source code between VB6 and Tally Pin
Deepak the Cool16-Mar-07 3:34
Deepak the Cool16-Mar-07 3:34 
AnswerRe: Compitable source code between VB6 and Tally Pin
Dave Kreskowiak16-Mar-07 4:16
mveDave Kreskowiak16-Mar-07 4:16 
Questionadd jar file in vb dot net Pin
shitendra16-Mar-07 2:00
shitendra16-Mar-07 2:00 
AnswerRe: add jar file in vb dot net Pin
Dave Kreskowiak16-Mar-07 4:10
mveDave Kreskowiak16-Mar-07 4:10 
Questionserialzable XmlNode Pin
ONeil Tomlinson16-Mar-07 0:59
ONeil Tomlinson16-Mar-07 0:59 
AnswerRe: serialzable XmlNode Pin
Marcus J. Smith16-Mar-07 2:40
professionalMarcus J. Smith16-Mar-07 2:40 
Imports System.Xml.Serialization

<XmlRoot("Testing")> _
Public Class clsTest

    Private strName As String

    <XmlElement("NameToBeReturnedInXML")> _
    Public Property Name() As String
        Get
            Return strName
        End Get
        Set(ByVal value As String)
            strName = value
        End Set
    End Property

End Class
This is the type of setup if you are wanting to create a strongly typed object that is serialized. The XmlRoot attribute will be the main wrapper around the entire stream. The XmlElement attribute will be each element obviously.

This can get pretty ugly but it is very useful. If you wanted to have multiple employers for a person you could create an Employer class with all the information you want along with the Xml tags. Then you would create the main class and setup an array of type Employer(). You would then create the array of the object (there are other ways, this is how Ive done it) and add that array of Employers to the main class. Then when it is serialized it will do something like the following. (Note I had to remove the < >'s in order for it to show)
UserInformation
      Employers
          Employer
               EmployerName Emp1 /EmployerName
          /Employer
          Employer
               EmployerName Emp2 /EmployerName
          /Employer
     /Employers
/UserInformation
Here a site about the serialization Im showing you[^]


CleaKO

"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

Questionselecting 2nd drop down only after selecting the 1st Pin
hepsy16-Mar-07 0:17
hepsy16-Mar-07 0:17 
AnswerRe: selecting 2nd drop down only after selecting the 1st Pin
Smart_Boy16-Mar-07 1:19
Smart_Boy16-Mar-07 1:19 
AnswerRe: selecting 2nd drop down only after selecting the 1st Pin
coolestCoder16-Mar-07 1:34
coolestCoder16-Mar-07 1:34 
AnswerRe: selecting 2nd drop down only after selecting the 1st Pin
N a v a n e e t h16-Mar-07 2:32
N a v a n e e t h16-Mar-07 2:32 
GeneralRe: selecting 2nd drop down only after selecting the 1st Pin
hepsy16-Mar-07 21:28
hepsy16-Mar-07 21:28 
Questioncrystal report problem Pin
Member 392923116-Mar-07 0:07
Member 392923116-Mar-07 0:07 
AnswerRe: crystal report problem Pin
N a v a n e e t h16-Mar-07 2:36
N a v a n e e t h16-Mar-07 2:36 
QuestionDebugging: cannot drill down into object collections in QuickWatch window Pin
Yibbler15-Mar-07 23:47
Yibbler15-Mar-07 23:47 
GeneralRe: Debugging: cannot drill down into object collections in QuickWatch window Pin
Kschuler16-Mar-07 7:50
Kschuler16-Mar-07 7:50 
QuestionEmbedding Reports Within a cell !!! Pin
fulbright15-Mar-07 20:41
fulbright15-Mar-07 20:41 
QuestionRoot Directory Pin
nitin_ion15-Mar-07 19:30
nitin_ion15-Mar-07 19:30 
AnswerRe: Root Directory Pin
Ed.Poore16-Mar-07 7:18
Ed.Poore16-Mar-07 7:18 
Questionthe database has been placed in state by user "Admin" Pin
charleslau285515-Mar-07 15:34
charleslau285515-Mar-07 15:34 
AnswerRe: the database has been placed in state by user "Admin" Pin
Marcus J. Smith16-Mar-07 2:28
professionalMarcus J. Smith16-Mar-07 2:28 
QuestionAcrobat Interapplication Pin
user5315-Mar-07 12:55
user5315-Mar-07 12:55 
QuestionHow can I encrypt a string before I add it to file? Pin
JUNEYT15-Mar-07 12:55
JUNEYT15-Mar-07 12:55 
AnswerRe: How can I encrypt a string before I add it to file? [modified] Pin
nlarson1115-Mar-07 14:59
nlarson1115-Mar-07 14:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.