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

Re: parse html 80 80

>Can I use libxml++ to parse html.

Yes you can use. Have a look at -

I would suggest to use QTXml or TinyXML parser.

Re: parse html 80 80

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 )
    stex -c -r "^<img&src&=&\"^]" $html  > null
    stex "]^\"^" $html > $img
    echo $img

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

script "C:/Scripts/Img.txt" url("")

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


Re: parse html 80 80

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 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.