@@ -13,10 +13,11 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFObject.h" +#import "OFXMLParser.h" @class OFMutableArray; @class OFXMLElement; @class OFXMLElementBuilder; @@ -65,10 +66,20 @@ */ - (void)elementBuilder: (OFXMLElementBuilder*)builder didNotExpectCloseTag: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns; + +/** + * This callback is called when the XML parser for the element builder found an + * unknown entity. + * + * \param entity The name of the entity + * \return The substitution for the entity + */ +- (OFString*)elementBuilder: (OFXMLElementBuilder*)builder + foundUnknownEntityNamed: (OFString*)entity; @end /** * \brief A class implementing the OFXMLParserDelegate protocol that can build * OFXMLElements from the document parsed by the OFXMLParser. @@ -75,11 +86,11 @@ * * It can also be used to build OFXMLElements from parts of the document by * first parsing stuff using the OFXMLParser with another delegate and then * setting the OFXMLElementBuilder as delegate for the parser. */ -@interface OFXMLElementBuilder: OFObject +@interface OFXMLElementBuilder: OFObject { OFMutableArray *stack; id delegate; }