Between the two string to use with the php xml parser

YCRussell

New Member
\[code\]<title><![CDATA[ hello ]]></title> <link>http://www.google.com</link> <description><img class="img" src="http://google.com/a.jpg" alt="" /></a>]]></description> <title><![CDATA[ good ]]></title> <link>http://www.google.com</link> <description><img class="img" src="http://google.com/b.jpg" /></a>]]></description> <title><![CDATA[ world ]]></title> <link>http://www.google.com</link> <description><img class="img" src="http://google.com/c.jpg" alt="" /></a>]]></description>\[/code\]I want to copy the text between \[code\]<![CDATA[\[/code\] and \[code\]]]>\[/code\] then paste them into alt attribute.The example above should be;\[code\]<title><![CDATA[ hello ]]></title> <link>http://www.google.com</link> <description><img class="img" src="http://google.com/a.jpg" alt="hello" /></a>]]></description> <title><![CDATA[ good ]]></title> <link>http://www.google.com</link> <description><img class="img" src="http://google.com/b.jpg" /></a>]]></description> <title><![CDATA[ world ]]></title> <link>http://www.google.com</link> <description><img class="img" src="http://google.com/c.jpg" alt="world" /></a>]]></description>\[/code\]Is it possible?How to do it would be reasonable, if possible?
 
Back
Top