File Structure

--combo.xml
--index.php


combo.xml

<?xml version="1.0" encoding="ISO-8859-1"?>
<select>
<option>
<value>option 1</value>
</option>
<option>
<value>option 2</value>
</option>
<option>
<value>option 3</value>
</option>
</select>



index.php

<?php
$objDOM = new DOMDocument();
$objDOM->load("combo.xml");
$options = $objDOM->getElementsByTagName("option");
$opt = '<select name="sel" id="sel">';
foreach( $options as $option )
{
$value = $option->getElementsByTagName("value");
$optionvalue = $value->item(0)->nodeValue;
$opt .= "<option>$optionvalue</option>";
}
$opt .= "</select>";
echo $opt;
?>