Hello,
I think I found an unexpected behavior of the 'xmlSaveToFd' function while
redirecting the 'stdout' stream to a file, with libxml2 2.9.4.
Here is the code:
---
#include /* for xmlSaveToFd */
#include /* for printf */
#include /* for strlen */
int main()
{
const char *str =
+0200
Nick Wellnhofer <wellnho...@aevum.de> wrote:
> On 03/04/2018 14:02, YuGiOhJCJ Mailing-List via xml wrote:
> > printf("Content-Type: application/xhtml+xml;\n\n");
>
> This operates on the stdout FILE pointer using buffered IO.
>
> > ctxt = xmlS
Thanks, indeed the 'xmlSaveToFilename' function is what I was looking for.
Here is the code:
---
#include /* for xmlSaveToFilename */
#include /* for printf */
#include /* for strlen */
int main()
{
const char *str = "http://www.w3.org/1999/xhtml\;>\n\ntest\n\n\ntest\n\n\n";
Just to clarify the reason why I am using buffered IO only, I am currently
coding a dynamic website that is written in the C language.
After compiling the C code, I upload the program to a web server (Apache).
On the web browser, when I try to access to the website, there is an error:
Internal