To be an occupying power, there must have been a sovereign power in the territory; there was none. The 1948 United Nations Resolution 181 recommended a two-state partition; Israel agreed, the Arabs did not and invaded. During the 1948 Israeli war of self-defense, Jordan occupied the area called Judea and Samaria and changed the name to the West Bank. The legality of Jordan's occupation was not recognized, not even by the Arab States. Israel's presence in the West Bank is the result of another war of self-defense in 1967. The Geneva Convention allows a defending country to annex territory it gains during war. In 1967, there was no sovereign Arab state by the name of Palestine, so from whom did Israel capture the territory? UN Resolution 242 recommended a negotiated resolution to the dispute, not an Israeli withdrawal.
-- Michael Mendershausen, El Dorado Hills