2 Copyright (C) 2000-2003 SKYRIX Software AG
4 This file is part of OGo
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #include "SaxDefaultHandler.h"
24 #include "SaxException.h"
26 @implementation SaxDefaultHandler
28 /* SaxContentHandler */
30 - (void)startDocument {
35 - (void)startPrefixMapping:(NSString *)_prefix uri:(NSString *)_uri {
37 - (void)endPrefixMapping:(NSString *)_prefix {
40 - (void)startElement:(NSString *)_localName
41 namespace:(NSString *)_ns
42 rawName:(NSString *)_rawName
43 attributes:(id<SaxAttributes>)_attributes
46 - (void)endElement:(NSString *)_localName
47 namespace:(NSString *)_ns
48 rawName:(NSString *)_rawName
52 - (void)characters:(unichar *)_chars length:(int)_len {
54 - (void)ignorableWhitespace:(unichar *)_chars length:(int)_len {
57 - (void)processingInstruction:(NSString *)_pi data:(NSString *)_data {
59 - (void)setDocumentLocator:(id<NSObject,SaxLocator>)_locator {
61 - (void)skippedEntity:(NSString *)_entityName {
66 - (void)notationDeclaration:(NSString *)_name
67 publicId:(NSString *)_pubId
68 systemId:(NSString *)_sysId
72 - (void)unparsedEntityDeclaration:(NSString *)_name
73 publicId:(NSString *)_pubId
74 systemId:(NSString *)_sysId
75 notationName:(NSString *)_notName
79 /* SaxEntityResolver */
81 - (id)resolveEntityWithPublicId:(NSString *)_pubId systemId:(NSString *)_sysId {
87 - (void)warning:(SaxParseException *)_exception {
89 - (void)error:(SaxParseException *)_exception {
92 - (void)fatalError:(SaxParseException *)_exception {
96 @end /* SaxDefaultHandler */