Hi, thanks for your reply Tim.
I'm probably more confused though! lol
I didnt write the conponet that supplied the xml containing "
". But I
know in the DB where it got the data from it was a carriage return, I
inserted myself using ctrl M. So is 'and hash one there' a valid character
for utf-8 encoding? I thought nothing below 20 other than carriage return
and a couple of others was legal in utf8? If its ascii 19 thats character
DC3 which defenetly isnt what its meant to be.
Is it perhaps a html escape sequence that isnt strictly xml?
Any ideas would be much appreaciated.
thanks
Josh
"tim-kilostar" <ti*********@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
Hi Josh -
ASCII character 13 is the carriage return character - but in your XML
you're using #13 which is the hexadecimal form for the number 19. This won't
give you the results you're after. Instead use &13; (i.e., remove the #
character) or &0d; to represent the carriage return.
Because this might have been a typo when you made your original post, I
would also suggest that your also create an XmlTextReader object and supply
that to the DataSet.ReadXml() method instead. This will at the very least
allow you to experiment with the properies on the XmlTextReader class.
Hope this helps, or points you in the right direction.
--
Tim Roberts
Kilostar Solutions Ltd.
"Josh" wrote:
Hi,
I'm using System.Data.DataSet.ReadXml to convert some xml from a
webservice to a DataSet. The xml looks like:
<?xml version="1.0"
encoding="UTF-8"?><root><prioritiesTable><description>blah blah
blah blah</description></prioritiesTable></root>
The important thing here is the
which I beleive should be a single carriage return. However when ReadXml has finished it has been
converted to what appears to be a carriage return and line feed. Which is a big
problem for me because it adds an extra character which inturn can cause a
constraint vialation in my database.
Is it doing it wrong? What can I do to change this behaviour??
please help!
thanks in advance
Josh