📄 htxml.h
字号:
/* W3C Sample Code Library libwww Expat XML Parser Wrapper! Expat XML Parser Wrapper!*//*** (c) COPYRIGHT MIT 1995.** Please first read the full copyright statement in the file COPYRIGH.*//*This module is implemented by HTXML.c, and is a partof the W3C Sample Code Library.We use James Clark's expatXML parser which is very neat indeed. As the code doesn't come as a separatelibrary, I included it in the libwww CVS code base where I compile is astwo libraries: libxmltok.a and libxmlparse.a. Seethe external modules that libwww works with fordetails. Thanks so much to John Punin for writing this code!*/#ifndef HTXML_H#define HTXML_H#include "HTFormat.h"#include "HTStream.h"#include "HTStruct.h"#include "SGML.h"#include <xmlparse.h>/*. Libwww Stream Converter.This stream is a libwww converter whichcalls and creates a expat stream instance. In order to tell the applicationthat a new stream instance has been created.*/extern HTConverter HTXML_new;/*. Callback Handler Announcing a new Expat Stream object.When a libwww to expat XML stream converter instanceis created, the stream checks to see if there are any callbacks registeredwhich should be notified about the new stream instance. If that is the casethen this callback is called and a pointer to the XML parsed passed along.The output stream is the target that was originally set for the request objectbefore the request was issued.*/typedef void HTXMLCallback_new ( HTStream * me, HTRequest * request, HTFormat target_format, HTStream * target_stream, XML_Parser xmlparser);/*( Register Creation notification Callback)*/extern BOOL HTXMLCallback_registerNew (HTXMLCallback_new *);/*. XML Expat Stream to Libwww Structured Stream.This is a stream that converts from the expat stream to alibwww structured stream. Again, the applicationcan*/extern BOOL HTXMLStructured_setHandlers( HTStream * me, XML_StartElementHandler start, XML_EndElementHandler end, XML_CharacterDataHandler char_data, XML_DefaultHandler def_handler);extern BOOL HTXMLStructured_setUserData (HTStream * me, void * user_data);extern HTStream * HTXMLStructured_new (const SGML_dtd * dtd, HTStructured * starget);/**/#endif/* @(#) $Id: HTXML.html,v 2.2 1999/02/22 01:04:24 frystyk Exp $*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -