Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, I'm not sure if this is the correct Forum for this thread, so if any Mods would like to move it?

 

I'm new enough to .NET, and am starting to work with WriteXML. I've created a Dataset, created a new table, created a row object, added the columns to the row, created a new row for the table as my defined row, and added 1 row of data.

 

From here, I want to use the WriteXML.

 

I've done this specifying the dataset and the table name, and the file was saved successfully.

 

When I open up the XML file though, the Element Names in the XML do not match the Column Names in the Table, specifically the Column Names that start with a number 0, have been changed.

E.g. Column Name -> 0800M with value Gallagher, has been changed to Element -> <_x0030_800M>Gallagher</_x0030_800M>

 

Where does this _x0030_ come from????

 

I amended the Column names so that the first letter was not numeric, i.e. changing column 0800M, to T0800M, and the XML Element Name created after doing a WriteXML was T0800M, which leads me to believe that it's definitely something to do with the first letter being numeric.

 

Slightly annoying.................

What if the Hokey-Pokey IS what it's all about?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...