Add function to produce a xml node from panel