Modified CtkContent to return null for getFactory
Added improved entity conversion for XML output