L
Linus Rörstad
Hello!
I have created a xml-file by using the writeXml method on a dataset. The
problem arrises when I want to read the xml-file back into a dataset on a
pocket pc application. Some of the fields which are strings have whitespaces
added to end of the values in the dataset but not in the xml-file. How do I
read the xml-file without getting the whitespaces?
This is a part of the xml-file:
- <User>
<Username>hoa</Username>
<Password>hoa</Password>
<Access>1</Access>
</User>
and when it's put into the dataset it's like this:
Username="hoa "
The code I'm using to read the xml-file:
ds = new DataSet();
reader = new XmlTextReader(configs.DataPath);
ds.ReadXml( reader, XmlReadMode.ReadSchema);
Thanks
Linus
I have created a xml-file by using the writeXml method on a dataset. The
problem arrises when I want to read the xml-file back into a dataset on a
pocket pc application. Some of the fields which are strings have whitespaces
added to end of the values in the dataset but not in the xml-file. How do I
read the xml-file without getting the whitespaces?
This is a part of the xml-file:
- <User>
<Username>hoa</Username>
<Password>hoa</Password>
<Access>1</Access>
</User>
and when it's put into the dataset it's like this:
Username="hoa "
The code I'm using to read the xml-file:
ds = new DataSet();
reader = new XmlTextReader(configs.DataPath);
ds.ReadXml( reader, XmlReadMode.ReadSchema);
Thanks
Linus