Walaa wrote:
Is there a chance the problem is in the retrieval process?
That might be the problem.
In the database, I've now got the Xml Value column as something which should work. This query returns 3 views of the data:
SELECT Value, convert(varchar(max), Value), convert(varbinary(max), Value) FROM Memento WHERE ID=4
Raw Xml (shows in blue in MSSMS):
<Entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Entry key="FirmName"><Value xsi:type="xsd:string">A
B
C
D</Value></Entry></Entries>
Text (note the entitization for the '\r' chars)
<Entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Entry key="FirmName"><Value xsi:type="xsd:string">A
B
C
D</Value></Entry></Entries>
Binary version (I've highlighed the "A
\n":
0xFFFE3C0045006E0074007200690065007300200078006D006C006E0073003A007800730069003D0022006800740074
0070003A002F002F007700770077002E00770033002E006F00720067002F0032003000300031002F0058004D004C0053
006300680065006D0061002D0069006E007300740061006E00630065002200200078006D006C006E0073003A00780073
0064003D00220068007400740070003A002F002F007700770077002E00770033002E006F00720067002F003200300030
0031002F0058004D004C0053006300680065006D00610022003E003C0045006E0074007200790020006B00650079003D
0022004600690072006D004E0061006D00650022003E003C00560061006C007500650020007800730069003A00740079
00700065003D0022007800730064003A0073007400720069006E00670022003E004100260023007800300044003B0
00A004200260023007800300044003B0043000A0044003C002F00560061006C00750065003E003C002F0045006E0
07400720079003E003C002F0045006E00740072006900650073003E00
So the database side looks correct but what I actually see back on the entity Value property is "A\r\nB\r\nC\r\nD".
I am guessing that it is just '\n's being returned and something local is converting them to '\r\n' and that may be a different issue again though.
So if LLBLGEN wants a string on the App side but knows it is an Xml column, in what format is it asking for data to be retrieved?
And what happens to it after that?
(I have ORMProfiler if that can show a lower-level of data. I've not used it however so would need a bit of instruction if that would help)