Testimony of prisoner, how obtained.

If the witness be a prisoner confined in a jail or prison within this state, an order for his examination in prison, upon deposition, or for his temporary removal and production before a court or officer, for the purpose of being orally examined, may be issued.

[Code 1881 ยง 401; 1877 p 88 ยง 403; 1869 p 106 ยง 396; 1854 p 189 ยง 303; RRS ยง 1223.]