Vote count:
0
I have an xml file and it contains the following lines.
<myphotos_grid grid="true"><![CDATA[<rows>
<row rowID="1">
<rowAttribute>
<theName>photo-name</theName>
<value/>
</rowAttribute>
<rowAttribute>
<theName>photo-credit</theName>
<value/>
</rowAttribute>
<rowAttribute>
<theName>photo</theName>
<value>
<attachment id="1009343343"/>
</value>
</rowAttribute>
</row>
<row rowID="2">
<rowAttribute>
<theName>photo-name</theName>
<value/>
</rowAttribute>
<rowAttribute>
<theName>photo-credit</theName>
<value/>
</rowAttribute>
<rowAttribute>
<theName>photo</theName>
<value>
<attachment id="4432434344"/>
</value>
</rowAttribute>
</row>
</rows>]]></myphotos_grid>
I am reading xml node values through PHP function xpath.I want to get node text value whose sibling node text value is photo-credit.I want to get the photo credit values.please help me.
asked 43 secs ago
Aucun commentaire:
Enregistrer un commentaire