Differences From Artifact [9558fd2c7e]:
- File src/OFXMLElement.m — part of check-in [714aad6fba] at 2010-07-09 20:45:35 on branch trunk — Add more accessors to OFXMLElement. (user: js, size: 11202) [annotate] [blame] [check-ins using]
To Artifact [bd82ff1d44]:
- File
src/OFXMLElement.m
— part of check-in
[ed63c0fdc1]
at
2010-07-29 19:32:33
on branch trunk
— Comply with section 6.2 of XML namespaces.
More specifically to this:
"The namespace name for an unprefixed attribute name always has no
value." (user: js, size: 10953) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
252 253 254 255 256 257 258 | pool2 = [[OFAutoreleasePool alloc] init]; for (j = 0; j < attrs_count; j++) { OFString *attr_name = [attrs_carray[j] name]; OFString *attr_prefix = nil; tmp = [[attrs_carray[j] stringValue] stringByXMLEscaping]; | < < < | < | | | | | | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | pool2 = [[OFAutoreleasePool alloc] init]; for (j = 0; j < attrs_count; j++) { OFString *attr_name = [attrs_carray[j] name]; OFString *attr_prefix = nil; tmp = [[attrs_carray[j] stringValue] stringByXMLEscaping]; if ([attrs_carray[j] namespace] != nil && (attr_prefix = [all_namespaces objectForKey: [attrs_carray[j] namespace]]) == nil) @throw [OFUnboundNamespaceException newWithClass: isa namespace: [attrs_carray[j] namespace]]; len += [attr_name cStringLength] + (attr_prefix != nil ? [attr_prefix cStringLength] + 1 : 0) + [tmp cStringLength] + 4; @try { str_c = [self resizeMemory: str_c |
︙ | ︙ |