Avatar of JRockFL
JRockFLFlag for United States of America

asked on 

XML Format for Parent and Child Relationships

I'm working on an application that uses XML that can have unlimited parent child relationships.
This is only a small section of the data, but I wanted to know if this is the correct format or should I do it a different way?

<?xml version="1.0" standalone="yes"?>
<NewDataSet>
  <Transfer>
    <Name>Collections</Name>
    <Extension />
    <Parent />
    <Type />
  </Transfer>
  <Transfer>
    <Name>Tri</Name>
    <Extension>86328</Extension>
    <Parent>Collections</Parent>
    <Type>CT</Type>
  </Transfer>
  <Transfer>
    <Name>Hills</Name>
    <Extension>36308</Extension>
    <Parent>Collections</Parent>
    <Type>CT</Type>
  </Transfer>
</NewDataSet>
C#

Avatar of undefined
Last Comment
JRockFL
Avatar of kaufmed
kaufmed
Flag of United States of America image

Looks fine to me. Is there some aspect of using this in code that you are concerned about?
Avatar of JRockFL
JRockFL
Flag of United States of America image

ASKER

Right now I have a context menu that reads the xml and there has been talking about the business wanting this to be "easily configurable".

To me, opening the xml file directly is "easily configurable"
But I'm sure they are going to want some UI to make changes.

I was looking forward as to how I would do this and what controls I would use.
I was thinking about possibly using a treeview control, but it seems like it would be a major effort to add/edit/delete (possibly move nodes) and I just wanted to make sure the XML would allow for it.
ASKER CERTIFIED SOLUTION
Avatar of starlite551
starlite551
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of JRockFL
JRockFL
Flag of United States of America image

ASKER

Thank you
C#
C#

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

98K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo