RE: NewLine in TextBox
XML files are textfiles using HTML tags (roughly speaking).
This means that you must apply to the same rules as for HTML files for storing text. This means that special characters (and even also some normal characters like ">") must be saved as entities when you need to store them inside the XML and convert the entities back when you read them.
For example, line breaks are not valid in XML. You can write all the line breaks you want, it wont be seen as text.
RichEditText can be stored "as-is" (almost!!! thus not entirly, you can/will encounter just the same problems, but with other characters and stuff) because with RichEditText those special characters are already converted to entities and special tags.
You will always need to use a converter if you whish to store data/text in XML and you have no control of what is being stored or you have no certainty that the text will be "safe".
.-= A 'frrrrrrrituurrr' for Wacky =-.
|