Re: [xml] How to use libxml2 and RelaxNG validation?


I suppose I do it the wrong way because the result that I print is "(null)"

    ReaderP = xmlReaderForFile(xsltfile,NULL,1);
    int    retour = xmlTextReaderRelaxNGValidate(ReaderP,rngfile);
    printf("%s", retour);

I think you mean:

printf("%d", retour);

Since xmlTextReaderRelaxNGValidade() should be validating and returning
retour=0, retour is beeing evaluated as a NULL pointer in 'printf("%s", retour)'.


Lucas Brasilino
brasilino prrr mpf gov br
Procuradoria da República no Estado de Roraima
LPIC-1 Certified

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]