I have an xml in which one of the elements has an attribute that can be blank. For e.g.,
.....
object wontBeNull = couldBeNull ?? defaultIfNull;
Is what I'd try. It's called Null-Coalescing operator, I use it when I want a default for null input.