H
hartbypass
Hello,
I'll try to explain this the best I can. I am using VS2005/c# and this
is a web app. I have some data in the format of:
Ford Focus 2000
Ford Focus 2001
Ford Focus 2002
Ford Mustang 2004
Ford Mustang 2005
Dodge Ram 2003
Dodge Ram 2004
Dodge Ram 2005
Dodge Ram 2006
I am trying to create an XML file from this data that would look
something like.
<subgroup1 text = "Ford">
<subgroup2 text = "Focus">
<subgroup2a text = "2000">
</subgroup2a>
<subgroup2b text = "2001">
</subgroup2b>
</subgroup2>
</subgroup1>
I was thinking I would need to create something like three variables
and then loop through it and see if the next line of data matched the
previous and if not what value changed. I am just wondering if there
is a better way.
Thanks,
Greg
I'll try to explain this the best I can. I am using VS2005/c# and this
is a web app. I have some data in the format of:
Ford Focus 2000
Ford Focus 2001
Ford Focus 2002
Ford Mustang 2004
Ford Mustang 2005
Dodge Ram 2003
Dodge Ram 2004
Dodge Ram 2005
Dodge Ram 2006
I am trying to create an XML file from this data that would look
something like.
<subgroup1 text = "Ford">
<subgroup2 text = "Focus">
<subgroup2a text = "2000">
</subgroup2a>
<subgroup2b text = "2001">
</subgroup2b>
</subgroup2>
</subgroup1>
I was thinking I would need to create something like three variables
and then loop through it and see if the next line of data matched the
previous and if not what value changed. I am just wondering if there
is a better way.
Thanks,
Greg