2 Copyright (C) 2004 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
41 #include "gnu_xml_libxmlj_sax_GnomeLocator.h"
42 #include "gnu_xml_libxmlj_sax_GnomeXMLReader.h"
44 #include <libxml/SAX.h>
45 #include <libxml/parser.h>
48 xmljNewSAXHandler (jboolean contentHandler
,
50 jboolean entityResolver
,
51 jboolean errorHandler
,
52 jboolean declarationHandler
,
53 jboolean lexicalHandler
);
56 xmljExternalEntityLoader (const char *systemId
, const char *publicId
,
57 xmlParserCtxtPtr context
);
59 /* -- Function declarations for callback functions -- */
61 void xmljSAXInternalSubset(void *ctx
,
63 const xmlChar
*publicId
,
64 const xmlChar
*systemId
);
66 xmlParserInputPtr
xmljSAXResolveEntity(void *ctx
,
67 const xmlChar
*publicId
,
68 const xmlChar
*systemId
);
70 xmlEntityPtr
xmljSAXGetEntity(void *ctx
,
73 void xmljSAXEntityDecl(void *ctx
,
76 const xmlChar
*publicId
,
77 const xmlChar
*systemId
,
80 void xmljSAXNotationDecl(void *ctx
,
82 const xmlChar
*publicId
,
83 const xmlChar
*systemId
);
85 void xmljSAXAttributeDecl(void *ctx
,
87 const xmlChar
*fullName
,
90 const xmlChar
*defaultValue
,
91 xmlEnumerationPtr tree
);
93 void xmljSAXElementDecl(void *ctx
,
96 xmlElementContentPtr content
);
98 void xmljSAXUnparsedEntityDecl(void *ctx
,
100 const xmlChar
*publicId
,
101 const xmlChar
*systemId
,
102 const xmlChar
*notationName
);
104 void xmljSAXSetDocumentLocator(void *ctx
,
105 xmlSAXLocatorPtr loc
);
107 void xmljSAXStartDocument(void *ctx
);
109 void xmljSAXEndDocument(void *ctx
);
111 void xmljSAXStartElement(void *ctx
,
113 const xmlChar
**atts
);
115 void xmljSAXEndElement(void *ctx
,
116 const xmlChar
*name
);
118 void xmljSAXReference(void *ctx
,
119 const xmlChar
*name
);
121 void xmljSAXCharacters(void *ctx
,
125 void xmljSAXIgnorableWhitespace(void *ctx
,
129 void xmljSAXProcessingInstruction(void *ctx
,
130 const xmlChar
*target
,
131 const xmlChar
*data
);
133 void xmljSAXComment(void *ctx
,
134 const xmlChar
*value
);
136 void xmljSAXCDataBlock(void *ctx
,
140 void xmljSAXWarning(void *ctx
,
144 void xmljSAXError(void *ctx
,
148 void xmljSAXFatalError(void *ctx
,
152 void xmljCheckWellFormed(xmlParserCtxtPtr ctx
);
154 jstring
xmljAttributeTypeName (JNIEnv
*env
,
157 jstring
xmljAttributeModeName (JNIEnv
*env
,
160 #endif /* !defined XMLJ_SAX_H */