Hey,
In this simple line of code I am trying to get a XML file:
[php]$Two_Tone_Photon_cuffs = new SimpleXMLElement(’…/…/category.xml’, null, true);[/php]
Now, This works great. The only thing is I want it to just display one item from the XML not everything
Here is my XML:
[code]<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="bracelets.css" type="text/css"?> ../../../images/bracelets/two_tone_cuffs.jpg Two Tone Photon cuffs shown in blackened silver and gold with moonstone and garnet. http://www.yahoo.com/ $1000.00 ../../../images/bracelets/two_tone_cuffs.jpg Two Tone dfgdfgdf cuffs shown gdff blackened silver and gold with moonstone and garnet. http://www.test.com/ $10300.00 ../../../images/bracelets/two_tone_cuffs.jpg Two Tone dfgdfgdf cuffs shown gdff blackened silver and gold with moonstone and garnet. http://www.test.com/ $10300.00 [/code] Is I want to just display "" (not: test, thing ect.). Now, seeing as I am brand new to PHP I was Have a little difficulty doing this. I think to specify that I only want to get "" It look something like this (the word is "think"!):[php]$Two_Tone_Photon_cuffs = new SimpleXMLElement('../../category.xml'>$bracelets->$Two_Tone_Photon_cuffs, null, true);[/php] Of course this does not work. This is just my wild guess from no PHP background!I hope I was clear. Thanks in advance!
–