Pig Soldiers are a common mob spawned in Animal Kingdoms. They are related to Zombie Pigman in a way because both hold a Gold Sword and stand on two feet. Pig Soldiers wear an Iron Helmet, Chestplate, and Boots. If a Pig Soldier is spawned on a horse, it will become a Horseback Pig.
Pig Soldiers do not attack the player, but will attack other hostile mobs like creepers and zombies. They will try to swarm their target while trying to hit it with their sword, which deals 4 health (2 hearts) of damage. Their armor does affect how much damage they will take.