Martin Suchan – BloQ Random #WPdev stuff

31Mar/110

New line characters in XML

Just a small hint - have you ever been wondering, how to put newline characters into XML document? typical string with escape sequence like '\n' can't be used, because this string has no special meaning in XML. Instead of you need to use hexadecimal escaped character: 
 for newline or 
 for carriage return. Simple, isn't it?

Tagged as: No Comments