I have an XML file that has data in it, but one of the things in it is a section of C# code that is intended for a script for a program.
The problem is I have this code in there for a data table,
for (int i = 0; i < dt.Rows.Count; ++i)
The XML deserialization is getting caught up on the ‘<‘ char, for obvious reasons. I already tried escaping it with ‘\’, but that did not work.
Is there a way to have this code in the XML document and have it parse/deserialize correctly? I can change the code to:
dt.Rows.Count > i
…and it works, but I want to see if there is a way for the other code to work as well.
<Less than ( < )>Greater than ( > )Or you can look into
CDATA