Originally Posted by
Khaled Mohammad
I know of XML parsers(libxml).But please some body give me a code with an example of exactly what I want to do please.
If you want a general solution then I would first choose a parsing library. For example libcurl is quite well suited for the purpose you are describing. The distribution of curl includes an example of how to download a page and then parse it using libcurl and tidy.
By the way your example is a bit confusing. You said you want the body content but then in your example you show an attribute of the body tag named content. Normally body content is something like this
Code:
<body>
<p>Hi this is a paragraph.
<p>& this is another paragraph!!
</body>
Given that body content, what do you want your program to return?