in reply to XML tag was empty - how to check?

The SuppressEmpty parameter is used to control how empty elements should be represented in the structure created by XMLin. Set it to undef or '' - whichever is more suitable for you.