Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

csaxParser.h

00001 /* 00002 * Copyright (C) 1997-2004 by Objective Systems, Inc. 00003 * 00004 * This software is furnished under a license and may be used and copied 00005 * only in accordance with the terms of such license and with the 00006 * inclusion of the above copyright notice. This software or any other 00007 * copies thereof may not be provided or otherwise made available to any 00008 * other person. No title to and ownership of the software is hereby 00009 * transferred. 00010 * 00011 * The information in this software is subject to change without notice 00012 * and should not be construed as a commitment by Objective Systems, Inc. 00013 * 00014 * PROPRIETARY NOTICE 00015 * 00016 * This software is an unpublished work subject to a confidentiality agreement 00017 * and is protected by copyright and trade secret law. Unauthorized copying, 00018 * redistribution or other use of this work is prohibited. 00019 * 00020 * The above notice of copyright on this source code product does not indicate 00021 * any actual or intended publication of such source code. 00022 * 00023 *****************************************************************************/ 00024 00025 #ifndef __CSAXPARSER_H_ 00026 #define __CSAXPARSER_H_ 00027 00028 #include "rtsrc/asn1type.h" 00029 #include "rtxersrc/rtSAXDefs.h" 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif 00034 00035 typedef struct OSXMLREADER { 00036 ASN1CTXT* pctxt; 00037 } OSXMLREADER; 00038 00039 /* atts is array of name/value pairs, terminated by 0; 00040 names and values are 0 terminated. 00041 */ 00042 typedef void (*CSAX_StartElementHandler)(void *userData, 00043 const XMLCHAR *name, 00044 const XMLCHAR **atts); 00045 00046 typedef void (*CSAX_EndElementHandler)(void *userData, 00047 const XMLCHAR *name); 00048 00049 00050 /* s is not 0 terminated. */ 00051 typedef void (*CSAX_CharacterDataHandler)(void *userData, 00052 const XMLCHAR *s, 00053 int len); 00054 00055 OSXMLREADER* csaxCreateXmlReader (ASN1CTXT* pctxt, void* pSaxHandlerData, 00056 CSAX_StartElementHandler pStartElementProc, 00057 CSAX_EndElementHandler pEndElementProc, 00058 CSAX_CharacterDataHandler pCharactersProc); 00059 int csaxParse (OSXMLREADER* pReader); 00060 int csaxReleaseReader (OSXMLREADER* pReader); 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 00066 #endif /* __CSAXPARSER_H_ */

Copyright © 1997-2004 Objective Systems,Inc.
All Rights Reserved.
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.

This file was last modified on 1 Oct 2004.
ASN1C XER Runtime, ASN1C v5.7x