Can I use libxml++ to parse html. I'm trying to find all the images in a xml file and store the image data directly into the src attribute of the web page.

I know there is a bit of a difference between html and xml that's why I am asking the question

This biterscripting script will extract images from a page.

# Script Img.txt
var str url
var str html, img
cat $url > $html
while ( { sen -c -r "^<img&src&=&\"&\"^" $html } > 0 )
do
    stex -c -r "^<img&src&=&\"^]" $html  > null
    stex "]^\"^" $html > $img
    echo $img
done

Save the script in file C:/Scripts/Img.txt, start biterscripting, enter this command.

script "C:/Scripts/Img.txt" url("http://www.daniweb.com/forums/thread261065.html#")

It will show you images on this page. I have tested this script. It's printing this output -

/alphaimages/misc/logo/logo.gif
/alphaimages/misc/logo/usercp.gif
/alphaimages/misc/logo/donate.gif
.
.
.

I'm not looking to use a scripting language. I was looking to have it coded in c/c++ and port into a mobile application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.