@@ -14,18 +14,18 @@ */ #include "config.h" #import "OFXMLElementBuilder.h" -#import "OFXMLElement.h" +#import "OFArray.h" #import "OFXMLAttribute.h" -#import "OFXMLCharacters.h" #import "OFXMLCDATA.h" +#import "OFXMLCharacters.h" #import "OFXMLComment.h" -#import "OFXMLProcessingInstructions.h" +#import "OFXMLElement.h" #import "OFXMLParser.h" -#import "OFArray.h" +#import "OFXMLProcessingInstruction.h" #import "OFMalformedXMLException.h" @implementation OFXMLElementBuilder @synthesize delegate = _delegate; @@ -54,15 +54,17 @@ [_stack release]; [super dealloc]; } -- (void)parser: (OFXMLParser *)parser - foundProcessingInstructions: (OFString *)pi +- (void)parser: (OFXMLParser *)parser + foundProcessingInstructionWithTarget: (OFString *)target + data: (OFString *)data { - OFXMLProcessingInstructions *node = [OFXMLProcessingInstructions - processingInstructionsWithString: pi]; + OFXMLProcessingInstruction *node = [OFXMLProcessingInstruction + processingInstructionWithTarget: target + data: data]; OFXMLElement *parent = _stack.lastObject; if (parent != nil) [parent addChild: node]; else if ([_delegate respondsToSelector: