Overview
Comment: | Add default implementation for OFXMLParserDelegate. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
280071188d0ac425fc6fc4cf45f60ca9 |
User & Date: | js on 2009-08-26 14:24:47 |
Other Links: | manifest | tags |
Context
2009-08-26
| ||
15:00 | Add support for comments to OFXMLParser. check-in: 6f61176375 user: js tags: trunk | |
14:24 | Add default implementation for OFXMLParserDelegate. check-in: 280071188d user: js tags: trunk | |
14:13 |
There is no need to return a BOOL in OFXMLParserDelegate. If you want to stop parsing, you just throw an exception. check-in: 87a3e4fb0a user: js tags: trunk | |
Changes
Modified src/OFXMLParser.h from [75a237522a] to [0e9bee0cbd].
︙ | ︙ | |||
69 70 71 72 73 74 75 | withSize: (size_t)size; @end @interface OFString (OFXMLUnescaping) - stringByXMLUnescaping; - stringByXMLUnescapingWithHandler: (OFObject <OFXMLUnescapingDelegate>*)h; @end | > > > | 69 70 71 72 73 74 75 76 77 78 | withSize: (size_t)size; @end @interface OFString (OFXMLUnescaping) - stringByXMLUnescaping; - stringByXMLUnescapingWithHandler: (OFObject <OFXMLUnescapingDelegate>*)h; @end @interface OFObject (OFXMLParserDelegate) <OFXMLParserDelegate> @end |
Modified src/OFXMLParser.m from [841823e28f] to [dc40641988].
︙ | ︙ | |||
535 536 537 538 539 540 541 | [ret appendCStringWithoutUTF8Checking: string + last length: i - last]; return ret; } @end | > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 | [ret appendCStringWithoutUTF8Checking: string + last length: i - last]; return ret; } @end @implementation OFObject (OFXMLParserDelegate) - (void)xmlParser: (OFXMLParser*)parser didStartTagWithName: (OFString*)name prefix: (OFString*)prefix namespace: (OFString*)ns attributes: (OFArray*)attrs { } - (void)xmlParser: (OFXMLParser*)parser didEndTagWithName: (OFString*)name prefix: (OFString*)prefix namespace: (OFString*)ns { } - (void)xmlParser: (OFXMLParser*)parser foundString: (OFString*)string { } - (OFString*)xmlParser: (OFXMLParser*)parser foundUnknownEntityNamed: (OFString*)entity { return nil; } @end |