@@ -9,12 +9,11 @@ * the packaging of this file. */ #import "OFObject.h" #import "OFString.h" - -extern int _OFXMLParser_reference; +#import "OFXMLAttribute.h" @class OFXMLParser; @class OFArray; @class OFMutableArray; @@ -83,34 +82,17 @@ */ - (OFString*)xmlParser: (OFXMLParser*)parser didFindUnknownEntityNamed: (OFString*)entity; @end -/** - * \brief A protocol that needs to be implemented by delegates for - * -[stringByXMLUnescapingWithHandler:]. - */ -@protocol OFXMLUnescapingDelegate -/** - * This callback is called when an unknown entity was found while trying to - * unescape XML. The callback is supposed to return a substitution for the - * entity or nil if it is unknown to the callback as well, in which case an - * exception will be thrown. - * - * \param entity The name of the entity that is unknown - * \return A substitution for the entity or nil - */ -- (OFString*)didFindUnknownEntityNamed: (OFString*)entity; -@end - /** * \brief An event-based XML parser. * * OFXMLParser is an event-based XML parser which calls the delegate's callbacks * as soon asit finds something, thus suitable for streams as well. */ -@interface OFXMLParser: OFObject +@interface OFXMLParser: OFObject { OFObject *delegate; enum { OF_XMLPARSER_OUTSIDE_TAG, OF_XMLPARSER_TAG_OPENED, @@ -177,26 +159,7 @@ */ - (void)parseBuffer: (const char*)buf withSize: (size_t)size; @end -/** - * \brief A category for unescaping XML in strings. - */ -@interface OFString (OFXMLUnescaping) -/** - * Unescapes XML in the string. - */ -- (OFString*)stringByXMLUnescaping; - -/** - * Unescapes XML in the string and uses the specified handler for unknown - * entities. - * - * \param h An OFXMLUnescapingDelegate as a handler for unknown entities - */ -- (OFString*)stringByXMLUnescapingWithHandler: - (OFObject *)h; -@end - @interface OFObject (OFXMLParserDelegate) @end