That would make me think that some parser/validator function that removes empty tags might be the culprit.