Using transistor output as a logic input
You have the lower input of your XOR gate tied to ground so it will never switch. (You probably are aware of this.)








simulate this circuit &ndash; Schematic created using CircuitLab

Figure 1. Correct application of the pull-up resistor.


Your notion of how to wire a pull-up resistor is incorrect. Figure 1 shows the correct method. When Q1 is off R1 pulls the input high. When Q1 is on it pulls the input low.
R1's value is unnecessarily low. 50 mA will flow when Q1 is on. 10k would be fine.
R3 is low too. Most logic chips won't supply more than a few mA.




Response to comment:


  I want the circuit to work the other way, when transistor is on logic gate's input becomes high.








simulate this circuit

Figure 2. To eliminate the inversion caused by Q1 just eliminate it. R4 is required to pull the input low when the switch opens.