CrLf in XML quoted string
-
Does anyone know how to put a carriage return/linefeed sequence in an XML quoted string? I tried
&
&
<br/>
, etc. Help would be much appreciated.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi -
Does anyone know how to put a carriage return/linefeed sequence in an XML quoted string? I tried
&
&
<br/>
, etc. Help would be much appreciated.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma GandhiAn quoted string can have carriage returns. There is no escaping sequence for it, so that's why etc. don't do anything. To answer your question, I need to know if you are just editing an Xml file by hand, or trying to tweak an xml file writer. If you are editing by hand, then just add carriage returns. It's compatible with the Xml snytax rules. Otherwise, depending on the language you are using to generate the xml file, make sure to add \r and\n to exported strings.
-
An quoted string can have carriage returns. There is no escaping sequence for it, so that's why etc. don't do anything. To answer your question, I need to know if you are just editing an Xml file by hand, or trying to tweak an xml file writer. If you are editing by hand, then just add carriage returns. It's compatible with the Xml snytax rules. Otherwise, depending on the language you are using to generate the xml file, make sure to add \r and\n to exported strings.
This is what I had thought, but when I do it that way, my whole XML file's display goes nuts. I am just doing an XML file by hand with an XSLT transform. Thanks for your help!
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi