Is the xiangqi general the same as the chess king?
These answers restate the rules implemented by our open-source engine, which follows the WXF laws for movement, checkmate and both repetition rulings: a side that forces a repetition by perpetual check or perpetual chase loses rather than drawing. The chase half has not been validated against the official casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it before publishing.
Direct answer
Comparable in purpose, much more restricted in practice. Both pieces are the ones whose safety decides the game, and both move one point at a time. But the xiangqi general is confined to nine fixed points in its own palace for the entire game, never castles, and never ventures beyond that small area, unlike a chess king, which can end up active almost anywhere on the board by the endgame.
Why the general's confinement changes attacking strategy so much
Because you always know exactly where the general can possibly be, nine points, fixed, from move one, attacking play becomes a much more concrete counting exercise than hunting a chess king that could in principle end up almost anywhere. This is one of the sharpest structural differences between the two games.
The flying general rule has no king equivalent
Chess has no rule against two kings facing each other along an open file; they may stand on the same file at any distance, and only adjacency is forbidden. Xiangqi's flying general rule creates a genuinely unique tactical resource, a general's own file control, with nothing comparable in chess.
Related questions
Can the general ever leave the palace to attack, the way an active endgame king does?
No, never, under any circumstances, for the entire game.
Does the general capture pieces the way a king does?
Yes, an orthogonally adjacent enemy piece inside the palace, and, like a king, never one that is defended.