Allow empty values

This pull request allows the occurrence of empty values (i.e. things like `<string></string>`). I'm not sure it's the cleanest solution, since I'm not familiar with the code base, but it does solve the problem.