Throws an IllegalStateException rather than returning null in case of
non compliant XML fragment