No official cheat code exists to unlock all doors in Super Mario Bros. X (SMBX).
Warning: Modifying game files can corrupt saves. Always back up first.