Police say a Sydney man charged over the alleged rape of a seven-year-old girl in the toilets of a Kogarah dance studio also filmed the attack.

Key points: Police will allege Sampieri held a girl at knife point and sexually assaulted her for half an hour

Police will allege Sampieri held a girl at knife point and sexually assaulted her for half an hour He had remained under police guard in hospital for a week before he was charged

He had remained under police guard in hospital for a week before he was charged He is due to face court again in January

Anthony Sampieri, 54, had a broken nose, cuts to his face and two black eyes when he appeared on screen at Waverley Local Court from Silverwater Jail.

He was refused bail.

Police allege Mr Sampieri held the girl at knifepoint before locking her in a men's toilet cubicle and sexually assaulting her.

Documents filed with the court allege Mr Sampieri filmed the attack for the purpose of creating child abuse material.

He has been charged with 10 offences, including sexual intercourse with a child, aggravated kidnapping, creating child abuse material and wounding or grievous bodily harm.

Outside Waverley Local Court, Mr Sampieri's barrister Ken Buckman would not say whether his client would fight the charges.

Police say the girl's mother was helped by the father of a different child, who kicked open the cubicle door before Sampieri allegedly stabbed him in the neck, abdomen and arm.

Nick Gilio was treated for stab wounds at St George Hospital, and has since been released.

Jeffrey Stack, who works as a dentist in the same building, raced upstairs and knocked Mr Sampieri out in the bathroom.

Mr Sampieri was taken to St George Hospital, remaining under police guard for more than a week during his treatment for facial injuries and liver cancer.

He was discharged from Prince of Wales hospital yesterday afternoon and was driven to Maroubra Police Station, where he charged after being questioned by detectives for several hours.

Yesterday, the NSW Police Commissioner Mick Fuller said he would make sure Mr Sampieri "dies in jail".

"I will make sure all the evidence before the court makes sure we never see him back on our streets again," he said.

Mr Sampieri has been remanded in custody and is due to face court again in Sutherland in January.