ObjFW  Check-in [8a71128e91]

Overview
Comment:Add special handling for xmlns in OFXMLElement.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8a71128e91e984028ecd9d6148a3ad979a6f706c2f1ba9f15a9d56ce567f3120
User & Date: js on 2010-07-08 19:28:18
Other Links: manifest | tags
Context
2010-07-08
23:39
Add -[bindPrefix:forNamespace] and -[bindDefaultNamespace:]. check-in: 62d6cdadb6 user: js tags: trunk
19:28
Add special handling for xmlns in OFXMLElement. check-in: 8a71128e91 user: js tags: trunk
18:49
Resolve attribute namespaces after all attributes have been parsed. check-in: 4c57833cfa user: js tags: trunk
Changes

Modified src/OFXMLElement.m from [917291b8e9] to [d9b9a2bb4c].

232
233
234
235
236
237
238
239


240
241
242
243
244
245
246
232
233
234
235
236
237
238

239
240
241
242
243
244
245
246
247







-
+
+








	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 && namespace != nil) ||
		if (([attrs_carray[j] namespace] == nil && namespace != nil &&
		    ![[attrs_carray[j] name] isEqual: @"xmlns"]) ||
		    ([attrs_carray[j] namespace] != nil && namespace == nil) ||
		    ([attrs_carray[j] namespace] != nil &&
		    ![[attrs_carray[j] namespace] isEqual: namespace]))
			if ((attr_prefix = [all_namespaces
			    objectForKey: [attrs_carray[j] namespace]]) == nil)
				@throw [OFUnboundNamespaceException
				    newWithClass: isa