Question

I want to create a project using c++ using html tidy to get an xml file.(Almost this)

But I have basic knowledge of c++ programming and haven't ever worked with other APIs and libraries. In the example above the program includes tidy.h and buffio.h, which i don't know where to find and how to use.(I downloaded the zip of html tidy from here,but it doesn't contain any of the above said files.) So where can I find these and how to use them with Code Blocks on windows

Was it helpful?

Solution

I can see both of those files in the Tidy source code:

http://tidy.cvs.sourceforge.net/viewvc/tidy/tidy/include

I don't see any zip files, so I'm not sure what it is you've downloaded, but try downloading the tarball here:

http://tidy.cvs.sourceforge.net/tidy/

To use them, simply make sure the folder containing the files is in your compiler's include paths, and then #include them as the sample code you linked to does. Don't forget to link to any compiled code which you need as well. The following tutorial may help you do that in Code Blocks:

http://www.learncpp.com/cpp-tutorial/a3-using-libraries-with-codeblocks/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top