E
E.Oosterhoorn
Hi,
I am trying to implement the following:
connect to data source, run stored procedure, store data in data table.
This all works fine, data table is accessed and the rows and columns are
writing their data into a string.
What I want to do is put XML data tags around the returned data, if I do
this as follows
<code>
GCS.DrugData = GCS.DrugData + "<ROW>" ;
foreach (DataColumn myColumn in myTable.Columns)
{
GCS.DrugData = GCS.DrugData + myRow[myColumn] + "," ;
}
GCS.DrugData = GCS.DrugData + "</ROW>" ;
</code>
The result is that the starting tag is created as <DrugData> but the
tags I have entered (<ROW>) are not recognised as XML. How do I enter
XML tags directly into the return string?
Thanks,
Erwin
I am trying to implement the following:
connect to data source, run stored procedure, store data in data table.
This all works fine, data table is accessed and the rows and columns are
writing their data into a string.
What I want to do is put XML data tags around the returned data, if I do
this as follows
<code>
GCS.DrugData = GCS.DrugData + "<ROW>" ;
foreach (DataColumn myColumn in myTable.Columns)
{
GCS.DrugData = GCS.DrugData + myRow[myColumn] + "," ;
}
GCS.DrugData = GCS.DrugData + "</ROW>" ;
</code>
The result is that the starting tag is created as <DrugData> but the
tags I have entered (<ROW>) are not recognised as XML. How do I enter
XML tags directly into the return string?
Thanks,
Erwin