in reply to Problems with interpreting octal values

In XML, a LF can be encoded as 
.

If you encode it differently, you'll have to decode it yourself.