G
Guest
Given an XML file (dataset.writexml), here is my output (simplified for this
posting):
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Category>
<CategoryId>80</CategoryId>
<Category>MyCat</Category>
</Category>
</NewDataSet>
But when I debug the field names, I see that my app is tweaking the field
names, apparently because they are dupes (?).
?ds.Tables(0).TableName
"Category"
?ds.Tables(0).Columns(0).ColumnName
"CategoryId"
?ds.Tables(0).Columns(1).ColumnName
"Category_Id"
Am I not allowed to duplicate field and/or table names?
Looks like because my table is named "Category", that I can't also have
field named "Category".
If so, then I can't have an easy translation from SQL Server (PK/FK similar
field names) to XML. I guess I have to tweak my field names before writing
to XML? How should I go about doing this, or am I getting something wrong.
Thx.
posting):
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<Category>
<CategoryId>80</CategoryId>
<Category>MyCat</Category>
</Category>
</NewDataSet>
But when I debug the field names, I see that my app is tweaking the field
names, apparently because they are dupes (?).
?ds.Tables(0).TableName
"Category"
?ds.Tables(0).Columns(0).ColumnName
"CategoryId"
?ds.Tables(0).Columns(1).ColumnName
"Category_Id"
Am I not allowed to duplicate field and/or table names?
Looks like because my table is named "Category", that I can't also have
field named "Category".
If so, then I can't have an easy translation from SQL Server (PK/FK similar
field names) to XML. I guess I have to tweak my field names before writing
to XML? How should I go about doing this, or am I getting something wrong.
Thx.