[xml] parsing from a file descriptor



Hi,
        I know how to parse a file, using:
                xmlParseFile( filename ), xmlDocGetRootElement(), etc.

        But, now I would like to parse xml from a file descriptor (a socket).

        Should I use:

                xmlParserInputBufferCreateFd(),
                xmlParserInputBufferRead()

        and then create document using xmlParseMemory() ?

        or which is the best way to parse xml from an fd ?

Thanks,
riq.

-- 
Ricardo Quesada



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