when creating an xml conraining a combo cell

I have a combo cell. When creating the xml a give the cell like this :fwrite($fp," “.$book[‘StopToName’].”\n");



afterwards a put in the combo values from database and the combo looks like this :



        

                    combo1.put(“1”,“iasi”);                            

                                        

                    combo1.put(“2”,“tesrt”);                            

                                        

                    combo1.put(“5”,“Pacurari”);                            

                                        

                    combo1.put(“7”,“Pascani”);                            

                                        

                    combo1.put(“8”,“Iasi”);                            

                                        

                    combo1.put(“9”,“ccc”);                            

                                    

how do i put the cell in the xml to contain the label $book[‘StopToName’] and the value $book[‘StopToID’]

When you describing value of combo excell from XML you have two possibilities
a) provide just a value of cell
    - if there is an option ( created from .put ) with such value - related label will be shown in grid
    - if there is no option with such value - the temporary option will be created, with label == value

b) you can configure all possible options directly from XML

    somesome labelanother label
   

in such case instead of default option set, cell will use options described in XML.