?? 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"#ifdef HT_STRUCT_XML_STREAM#include "HTStruct.h"#include "SGML.h"#endif /* HT_STRUCT_XML_STREAM */#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 parser 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, void * context);/*( Register Creation notification Callback)@@@Should be handled via XML names spaces@@@*/extern BOOL HTXMLCallback_registerNew (HTXMLCallback_new *, void * context);/*. XML Expat Stream to Libwww Structured Stream.This is a stream that converts from the expat stream to alibwww structured stream. Again, the applicationcan*/#ifdef HT_STRUCT_XML_STREAMextern 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/**/#endif/* @(#) $Id: HTXML.html,v 2.6 2001/08/30 11:36:41 kahan Exp $*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -