I have a class which I am using XML Serialization with, something like:
public class MyObj
{
[XmlAttributeAtt ribute(DataType ="string", AttributeName=" Text")]
public string text;
[XmlAttributeAtt ribute(DataType ="boolean", AttributeName=" Allow")]
public bool allow;
}
All works fine until I have a string that contains a backslash in the text
member. For some reason, in this case, the XML Serializaer doesn't output
this member. Can anyone tell me what I need to do to get this to work please?
What I want to do is to be able to specify regular expressions in the program
and save them to a user file.
Many thanks in advance.
public class MyObj
{
[XmlAttributeAtt ribute(DataType ="string", AttributeName=" Text")]
public string text;
[XmlAttributeAtt ribute(DataType ="boolean", AttributeName=" Allow")]
public bool allow;
}
All works fine until I have a string that contains a backslash in the text
member. For some reason, in this case, the XML Serializaer doesn't output
this member. Can anyone tell me what I need to do to get this to work please?
What I want to do is to be able to specify regular expressions in the program
and save them to a user file.
Many thanks in advance.
Comment