Implement xmlSetPropPrintf and reduce code as possible.