diff --git a/ChangeLog b/ChangeLog index a736236cb..f27474888 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-03-06 Fred Kiefer + + * Source/NSXMLNode.m (-copyWithZone:): Use objectValue ivar + directly as the subclass NSXMLElement returns a different value. + 2012-03-05 Eric Wasylishen * Source/NSUserDefaults.m: diff --git a/Source/NSXMLNode.m b/Source/NSXMLNode.m index db6f277b5..80c2662d2 100644 --- a/Source/NSXMLNode.m +++ b/Source/NSXMLNode.m @@ -846,7 +846,8 @@ execute_xpath(NSXMLNode *xmlNode, NSString *xpath_exp, NSString *nmspaces) c = [c _initWithNode: newNode kind: internal->kind]; - [c setObjectValue: [self objectValue]]; + GSIVar(c, options) = internal->options; + [c setObjectValue: internal->objectValue]; [c setURI: [self URI]]; // [c setName: [self name]]; // [c setStringValue: [self stringValue]]; @@ -1064,6 +1065,11 @@ execute_xpath(NSXMLNode *xmlNode, NSString *xpath_exp, NSString *nmspaces) { return NO; } + /* + NSLog(@"self %@ other %@", self, other); + NSLog(@"s sV '%@' oV '%@', other sV '%@' oV '%@'", [self stringValue], [self objectValue], + [other stringValue], [other objectValue]); + */ return isEqualTree(MY_NODE, (xmlNodePtr)[other _node]); }