For how long your daughter has this problems??
If it is chronic problem that it is chronic constipation which may be due to improper toilet training and second reason is plenty of cow milk in diet.
So give proper toilet training and decrease cow milk intake instead give regular food items which you are taking in your home
Next Steps
give balanced diet. plenty of water, green vegetables, fruits, curd, butter milk and less milk
proper toilet training..train her to pass stool in squaring position only.