Find with php specific parameters in XML
posted by wyvern on 2009-07-26 20:48:13
Hello i have the follow problem.
I have e XML file and i know the value of "uniquename=value2". I want extract the value of URL.Someone has suggestions?
Thanks to all.
I have e XML file and i know the value of "uniquename=value2". I want extract the value of URL.
<set uniquename="value1"> <items> <item> <units> ... </units> </item> <item> <units> ... <url><a href="http://www.something" rel="nofollow" target="_blank">http://www.something</a></url> ... </units> </item> </items> </set> <set uniquename="<b>value2</b>"> <items> <item> <units> ... </units> </item> <item> <units> ... <url><b><a href="http://www.something2" rel="nofollow" target="_blank">http://www.something2</a></b></url> ... </units> </item> </items> </set>
Thanks to all.
0
Did you try simpleXML? http://us2.php.net/simplexml
Answer the question
Top Users
- dail (12)
- livin52 (3)
- camu (3)
- softweb (2)
- Nadine (1)
- Josware (1)
- lfelipecr (1)
- gregoriohc (1)
- Mitu (1)
- ryan714 (1)