Differences From Artifact [21ba954ddd]:
- File src/OFXMLElementBuilder.m — part of check-in [20e7d0c0e2] at 2012-02-03 15:06:14 on branch trunk — Make the parser optional for OFMalformedXMLException. (user: js, size: 4745) [annotate] [blame] [check-ins using]
To Artifact [13948b0a6c]:
- File
src/OFXMLElementBuilder.m
— part of check-in
[008be86a16]
at
2012-03-12 11:54:22
on branch trunk
— OFArray: +[arrayWithCArray:length:] -> +[arrayWithObjects:count:].
This is required for the new array literals. (user: js, size: 4754) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
86 87 88 89 90 91 92 | - (void)parser: (OFXMLParser*)parser didStartElement: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns attributes: (OFArray*)attributes { OFXMLElement *element; | | | | | | | | | | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | - (void)parser: (OFXMLParser*)parser didStartElement: (OFString*)name withPrefix: (OFString*)prefix namespace: (OFString*)ns attributes: (OFArray*)attributes { OFXMLElement *element; OFXMLAttribute **objects; size_t i, count; element = [OFXMLElement elementWithName: name namespace: ns]; objects = [attributes objects]; count = [attributes count]; for (i = 0; i < count; i++) { if ([objects[i] namespace] == nil && [[objects[i] name] isEqual: @"xmlns"]) continue; if ([[objects[i] namespace] isEqual: @"http://www.w3.org/2000/xmlns/"]) [element setPrefix: [objects[i] name] forNamespace: [objects[i] stringValue]]; [element addAttribute: objects[i]]; } [[stack lastObject] addChild: element]; [stack addObject: element]; } - (void)parser: (OFXMLParser*)parser |
︙ | ︙ |