34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
-
-
+
-
-
-
-
-
|
{
void *pool = objc_autoreleasePoolPush();
OFXMLElement *root;
OFString *version;
OFArray *elements;
id object;
@try {
root = [OFXMLElement elementWithXMLString: self];
root = [OFXMLElement elementWithXMLString: self];
} @catch (OFMalformedXMLException *e) {
@throw [OFInvalidArgumentException exception];
} @catch (OFUnboundNamespaceException *e) {
@throw [OFInvalidArgumentException exception];
}
version = [root attributeForName: @"version"].stringValue;
if (version == nil)
@throw [OFInvalidArgumentException exception];
if (version.unsignedLongLongValue != 1)
@throw [OFUnsupportedVersionException
|