H
hope
Hi,
I have a stored procedure with a query
SELECT
DR_EmployeeView.emp_id,
DR_EmployeeView.emp_sme_id_1 as [emp_sme_id],
DR_EmployeeView.emp_sme_id_2 as [emp_sme_id]
FROM DR_EmployeeView
I need my xml looks like this (with 2 same elements, emp_sme_id):
<nc_employee>
<emp_id>00000026</emp_id>
<emp_sme_id> abc</emp_sme_id>
<emp_sme_id> def</emp_sme_id>
</nc_employee>
When I use Dataset.WriteXml, it looks like this:
<nc_employee>
<emp_id>00000026</emp_id>
<emp_sme_id> abc</emp_sme_id>
<emp_sme_id1> def</emp_sme_id1>
</nc_employee>
It automatically added 1 to the second element of .emp_sme_id.
Please help. Thanks.
I have a stored procedure with a query
SELECT
DR_EmployeeView.emp_id,
DR_EmployeeView.emp_sme_id_1 as [emp_sme_id],
DR_EmployeeView.emp_sme_id_2 as [emp_sme_id]
FROM DR_EmployeeView
I need my xml looks like this (with 2 same elements, emp_sme_id):
<nc_employee>
<emp_id>00000026</emp_id>
<emp_sme_id> abc</emp_sme_id>
<emp_sme_id> def</emp_sme_id>
</nc_employee>
When I use Dataset.WriteXml, it looks like this:
<nc_employee>
<emp_id>00000026</emp_id>
<emp_sme_id> abc</emp_sme_id>
<emp_sme_id1> def</emp_sme_id1>
</nc_employee>
It automatically added 1 to the second element of .emp_sme_id.
Please help. Thanks.