How to get the markers?


I have created some markers by using the following code:

var markers = new OpenLayers.Layer.Markers(“mymakers”);

for(i=0;i<10;i++) {
var myLonLat = getMyLonLat(i);
var marker = new OpenLayers.Marker(myLonLat, markerIcon.clone());
markers.addMarker(marker );

The 10 markers appear on the map correctly. Then how can I get the 10 markers? I have looked through the OpenLayers.Layer.Markers properties, but did not find any method to get the makers added to the layer. I appreciate any of your comments.

Best regards!