fix xml rendering bug (has anyone ever used this lib for real before?)