Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 146915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:41:18+00:00 2026-05-11T08:41:18+00:00

Here is the structure of the data my object will need to expose (the

  • 0

Here is the structure of the data my object will need to expose (the data is NOT really stored in XML, it was just the easiest way to illustrate the layout):

<Department id='Accounting'>   <Employee id='1234'>Joe Jones</Employee>   <Employee id='5678'>Steve Smith</Employee> </Department> <Department id='Marketing'>   <Employee id='3223'>Kate Connors</Employee>   <Employee id='3218'>Noble Washington</Employee>   <Employee id='3233'>James Thomas</Employee> </Department> 

When I de-serialize the data, how should I expose it in terms of properties on my object? If it were just Department and EmployeeID, I think I’d use a dictionary. But I also need to associate the EmployeeName, too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:41:19+00:00Added an answer on May 11, 2026 at 8:41 am
    Class Department    Public Id As Integer    Public Employees As List(Of Employee) End Class  Class Employee    Public Id As Integer    Public Name As String End Class 

    Something like that (can’t remember my VB syntax). Be sure to use Properties versus Public members…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

last time I asked how to populate a data structure here . Now I
Here's my problem.I have 2 xmlfiles with identical structure, with the second xml containing
Is there a .NET data structure I could use for bidirectional lookup? Here's the
here is my directory structure. /user/a /user/b /user/b inside folder a,b,c there is a
Here I have: Public Structure MyStruct Public Name as String Public Content as String
Here's the situation: I'm developing a simple application with the following structure: FormMain (startup
Ok: This is some of my table structure that matters here CaseStudyID int Title
I have a table with a structure like the following: LocationID AccountNumber long-guid-here 12345
I have a table in my database which stores a tree structure. Here are
I don't know what data structure to use for this problem. I want the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.