Hi,
I don't know what component you are using to parse the xml, but I would
suggest SimpleXML with Xpath query -
http://cz2.php.net/manual/en/function.simplexml-element-xpath.php
Thus, your query would be something like:
$xml = new SimpleXMLElement($xml_string);
$results = $xml->xpath('/is_active/options');
JB.
Vibhor Singh napsal(a):
Hi,
I am stuck at a point where I need to create an html select list. I want
to do this using xml, but I don know the grammar for the ‘select’. Am
trying to use this:
.
.
.
<is_active>
<type>select</type>
<options>
<label>Is active</label>
<option>
<label>Choose one</label>
<value>0</value>
</option>
</options>
</is_active>
I have inserted the highlighted part for trial purpose. Please, can
someone post the correct grammar for this?
Thanks,
Vibhor