Over a million developers have joined DZone.

Fix Newline Characters Read In From XML

When you read an XML file that has newlines, Flash automatically strips them out. This fixes that. It's useful for displaying plain text in textfields.

private function fixXMLNewlines(str:String):String{
	var new_str:String = str.split("\\n").join("\n")
	return new_str

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}