XML,serialization

ibeleeve

New Member
I'm reading the xml string generated by the code below.\[code\]string stCode = "if MyVariable then\n" + " X := X + 1;\n" + "end_if;";fbType.CodeBlocks.AddSTCodeBlock2("MySTCodeBlock", ref stCode);// this line is adding stcode in objectstring bucket = cb.NewFunctionBlockType(fbType.Name,"MyLib", fbType.Serialize());// serializing object\[/code\]But the \[code\]\n\[/code\] (newline) characters disappear after the string is parsed. How can I make them show?
 
Back
Top