是否可以在进程运行时停止libxml解析器? [英] Is it possible to stop a libxml parser while the process is running?

查看:69
本文介绍了是否可以在进程运行时停止libxml解析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用libxml解析器进行快速下载和显示。我的问题是在某些情况下我需要在处理时停止解析器。有可能吗?你能告诉我这个吗?

I am using a libxml parser for quick downloading and display. My problem is in some cases I need to stop the parser while it is processing. Is it possible to do? Can you guys please suggest me on this.

提前致谢,
Sekhar Bethalam。

Thanks in advance, Sekhar Bethalam.

推荐答案

SAX2 / libxml2 API具有 xmlStopParser -function,在这种情况下可能很有用。

The SAX2/libxml2 API has the xmlStopParser-function that might be useful in this case.

在docs void xmlStopParser(xmlParserCtxtPtr context)

文档可在此处获取:
http://xmlsoft.org/html/libxml-parser.html#xmlStopParser

这篇关于是否可以在进程运行时停止libxml解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆