-
SitePoint Enthusiast
Extract Images, XML, Xpath
Hello, I have an XML file and one element called description contains images amongst text..
<description>
<div class="content">
Lorem ipsum.... < img src="http://www.url1" /> Lorem ipsum < img src="http://www.url2" /> etc etc
</description>
Now I would like to extract all images and create a new element for them in the XML file like this:
<images>http://www.url1 , http://www.url2 </images>
Any help will be much appreciated.
many thanks
Andy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks