Xml thru PHP issue

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!

Hey,
In case I was not clear. What I really want to do is specify a certain line (or tag) of xml to display in my PHP.
Can this even be done? Do you have to display the entire xml file?

–Thanks

PS, Sorry, I a real noob to all this! :smiley:

Does anyone know how to do this? Was I clear about what I trying to do?

Sponsor our Newsletter | Privacy Policy | Terms of Service