Only ouputting valid items in the XML.