46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
self = [super of_init];
@try {
void *pool = objc_autoreleasePoolPush();
if (![element.name isEqual: self.className] ||
![element.namespace isEqual: OF_SERIALIZATION_NS])
@throw [OFInvalidArgumentException exception];
_characters = [element.stringValue copy];
objc_autoreleasePoolPop(pool);
} @catch (id e) {
[self release];
|
|
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
self = [super of_init];
@try {
void *pool = objc_autoreleasePoolPush();
if (![element.name isEqual: self.className] ||
![element.namespace isEqual: OFSerializationNS])
@throw [OFInvalidArgumentException exception];
_characters = [element.stringValue copy];
objc_autoreleasePoolPop(pool);
} @catch (id e) {
[self release];
|
123
124
125
126
127
128
129
130
131
132
133
|
{
return _characters.stringByXMLEscaping;
}
- (OFXMLElement *)XMLElementBySerializing
{
return [OFXMLElement elementWithName: self.className
namespace: OF_SERIALIZATION_NS
stringValue: _characters];
}
@end
|
|
|
123
124
125
126
127
128
129
130
131
132
133
|
{
return _characters.stringByXMLEscaping;
}
- (OFXMLElement *)XMLElementBySerializing
{
return [OFXMLElement elementWithName: self.className
namespace: OFSerializationNS
stringValue: _characters];
}
@end
|