ObjFW  Check-in [1bcc25c6fd]

Overview
Comment:Also set finishedParsing if the root element is in short form.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1bcc25c6fdbd12bfb0a3943a3ed481563d14a74ac75b8250f1d99452fadc859e
User & Date: js on 2011-06-04 13:56:19
Other Links: manifest | tags
Context
2011-06-04
14:00
Add -[isEqual:] to OFXMLElement and OFXMLAttribute. check-in: cee604408e user: js tags: trunk
13:56
Also set finishedParsing if the root element is in short form. check-in: 1bcc25c6fd user: js tags: trunk
13:36
Better sanity checks in +[OFSerialization objectByDeserializingString:]. check-in: ef62225e51 user: js tags: trunk
Changes

Modified src/OFXMLParser.m from [86dfdc1dc5] to [2ab7767e17].

726
727
728
729
730
731
732



733
734
735
736
737
738
739
			elementEndHandler(self, name, prefix, ns);
		else
#endif
			[delegate parser: self
			   didEndElement: name
			      withPrefix: prefix
			       namespace: ns];




		[namespaces removeNObjects: 1];
	} else if (prefix != nil) {
		OFString *str = [OFString stringWithFormat: @"%@:%@",
							    prefix, name];
		[previous addObject: str];
	} else







>
>
>







726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
			elementEndHandler(self, name, prefix, ns);
		else
#endif
			[delegate parser: self
			   didEndElement: name
			      withPrefix: prefix
			       namespace: ns];

		if ([previous count] == 0)
			finishedParsing = YES;

		[namespaces removeNObjects: 1];
	} else if (prefix != nil) {
		OFString *str = [OFString stringWithFormat: @"%@:%@",
							    prefix, name];
		[previous addObject: str];
	} else