Can a soldier capture another soldier in xiangqi?
These answers restate the rules implemented by our open-source engine, which follows the WXF laws and is regression-tested against the official 110-diagram repetition casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it against the engine before publishing.
Direct answer
Yes. A soldier captures exactly the way it moves, so an enemy soldier standing directly in front of it, or beside it once it has crossed the river, can be taken like any other piece. There is nothing special about soldier-versus-soldier contact, unlike the chess pawn's different move-and-capture directions.
Soldiers meeting head-on
Two advancing soldiers on the same file eventually face each other with one point between them, or arrive adjacent. Whichever reaches the point first can capture, and because soldiers cannot retreat, whoever loses that exchange has simply lost a soldier for nothing in return unless something recaptures.
Why it differs from chess
A chess pawn captures diagonally but moves straight, so two pawns facing each other on the same file block one another without ever fighting directly. A xiangqi soldier captures exactly along the lines it moves, so two soldiers on a collision course do fight it out.
Related questions
Can an uncrossed soldier capture another uncrossed soldier?
Only if one is directly in front of the other and it is that soldier's move, which requires them to already be adjacent on the same file.
Is a soldier trade ever forced?
No more than any other capture; it is only ever played if it is the best move available.