Splitting data in one column into rows

Closed
msd - 17 Feb 2010 à 08:53
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 17 Feb 2010 à 09:25
Hello,
I have a situation where as all of the data from a survey was down loaded into one column. Each block of 10 rows represent one response. I need to have each response be reflected in a row.
This is what I have.

COLUMN A
- <form1>
  <DutyStatus>
<Building>
  <Reason />
  <Other />
  <Cardboard>
  <Metalcans>
  <Plastics>
  <Paper>
  </form1>
<form1>
  <DutyStatus>
  <Building>
<Reason />
  <Other />
  <Cardboard>
  <Metalcans>
  <Plastics>
  <Paper>
  </form1>
<form1>
  <DutyStatus>
<Building>
<Reason>
<Other />
  <Cardboard>
  <Metalcans>
  <Plastics>
  <Paper>
  </form1>
- <form1>

What I need is for to look like
A B C D E G H I
<DutyStatus> <Building> <Reason /> <Other /> <Cardboard> <Metalcans> <Plastics> <Paper>   <DutyStatus> <Building> <Reason /> <Other /> <Cardboard> <Metalcans> <Plastics> <Paper>   <DutyStatus> <Building> <Reason> <Other /> <Cardboard> <Metalcans> <Plastics> <Paper>

Thank You

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
17 Feb 2010 à 09:25
If it is a truly well formed XML document, then if you just open this in excel, it should do what you want it to do. From the sample I can find two issues
1. top level is not defined
2. certain tags have no matching closing tags

I would guess both issues are just because of it being sample.