S
SimeonD
Hi
I am outputting XML from a dataset.
So I have Employee section that looks like:
- <RiskDetails>
- <Business>
<Turnover>800000</Turnover>
- <Trade>
<TradeCode>M404</TradeCode>
<TradeDescription>Builder</TradeDescription>
<TradeOtherInfo>incl property developer</TradeOtherInfo>
</Trade>
- <Employees>
<NumberEmployed Category="111">1</NumberEmployed>
<NumberEmployed Category="006">2</NumberEmployed>
<NumberEmployed Category="119">3</NumberEmployed>
</Employees>
I want to add a WoodWorkers section to CARRisk, which I wanted to look like
the Employees section. But instead I get a line for each WoodWorker.
So I'd like to get
- <CARRisk>
<NumNewDwellings>15</NumNewDwellings>
- <WoodWorkers>
<WorkerDetail>Wood1</WorkerDetail>
<WorkerDetail>wood 2</WorkerDetail>
<WorkerDetail>wood 3</WorkerDetail>
<WorkerDetail>wood 4</WorkerDetail>
</WoodWorkers>
</CARRisk>
But instead I get the text below. Any idea what I must change?
- <CARRisk>
<NumNewDwellings>15</NumNewDwellings>
- <WoodWorkers CARRisk_Id="1">
<WoodWorkerID>1</WoodWorkerID>
- <Worker>
<WorkerDetail>Wood1</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
- <Worker>
<WorkerDetail>wood 2</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
- <Worker>
<WorkerDetail>wood 3</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
- <Worker>
<WorkerDetail>wood 4</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
</WoodWorkers>
</CARRisk>
I am outputting XML from a dataset.
So I have Employee section that looks like:
- <RiskDetails>
- <Business>
<Turnover>800000</Turnover>
- <Trade>
<TradeCode>M404</TradeCode>
<TradeDescription>Builder</TradeDescription>
<TradeOtherInfo>incl property developer</TradeOtherInfo>
</Trade>
- <Employees>
<NumberEmployed Category="111">1</NumberEmployed>
<NumberEmployed Category="006">2</NumberEmployed>
<NumberEmployed Category="119">3</NumberEmployed>
</Employees>
I want to add a WoodWorkers section to CARRisk, which I wanted to look like
the Employees section. But instead I get a line for each WoodWorker.
So I'd like to get
- <CARRisk>
<NumNewDwellings>15</NumNewDwellings>
- <WoodWorkers>
<WorkerDetail>Wood1</WorkerDetail>
<WorkerDetail>wood 2</WorkerDetail>
<WorkerDetail>wood 3</WorkerDetail>
<WorkerDetail>wood 4</WorkerDetail>
</WoodWorkers>
</CARRisk>
But instead I get the text below. Any idea what I must change?
- <CARRisk>
<NumNewDwellings>15</NumNewDwellings>
- <WoodWorkers CARRisk_Id="1">
<WoodWorkerID>1</WoodWorkerID>
- <Worker>
<WorkerDetail>Wood1</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
- <Worker>
<WorkerDetail>wood 2</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
- <Worker>
<WorkerDetail>wood 3</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
- <Worker>
<WorkerDetail>wood 4</WorkerDetail>
<WoodWorkerId>1</WoodWorkerId>
</Worker>
</WoodWorkers>
</CARRisk>