Differences From Artifact [bdb4c731ad]:
- File
src/OFXMLElementBuilder.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 4643) [annotate] [blame] [check-ins using]
To Artifact [4e94b4d443]:
- File src/OFXMLElementBuilder.m — part of check-in [cb0fd980f9] at 2016-01-03 01:14:27 on branch trunk — Make more use of fast enumeration (user: js, size: 4530) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
74 75 76 77 78 79 80 | - (void)parser: (OFXMLParser*)parser didStartElement: (OFString*)name prefix: (OFString*)prefix namespace: (OFString*)namespace attributes: (OFArray*)attributes { | < < < < | | < < | < | | | | | | | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | - (void)parser: (OFXMLParser*)parser didStartElement: (OFString*)name prefix: (OFString*)prefix namespace: (OFString*)namespace attributes: (OFArray*)attributes { OFXMLElement *element = [OFXMLElement elementWithName: name namespace: namespace]; for (OFXMLAttribute *attribute in attributes) { if ([attribute namespace] == nil && [[attribute name] isEqual: @"xmlns"]) continue; if ([[attribute namespace] isEqual: @"http://www.w3.org/2000/xmlns/"]) [element setPrefix: [attribute name] forNamespace: [attribute stringValue]]; [element addAttribute: attribute]; } [[_stack lastObject] addChild: element]; [_stack addObject: element]; } - (void)parser: (OFXMLParser*)parser |
︙ | ︙ |