From 36d20eac1fdcbc5aadc6fdce4038786963413ea3 Mon Sep 17 00:00:00 2001 From: Mark Berry Date: Wed, 22 Apr 2015 16:33:24 +0100 Subject: [PATCH 1/2] FT: Fix warning that we treat as an error. --- KissXML/DDXMLElement.m | 1 - 1 file changed, 1 deletion(-) diff --git a/KissXML/DDXMLElement.m b/KissXML/DDXMLElement.m index d08516aa..0ac14933 100644 --- a/KissXML/DDXMLElement.m +++ b/KissXML/DDXMLElement.m @@ -247,7 +247,6 @@ - (NSArray *)elementsForLocalName:(NSString *)localName URI:(NSString *)uri } else { - NSString *prefix; NSString *realLocalName; [DDXMLNode getPrefix:&prefix localName:&realLocalName forName:localName]; From 3dbfa3c4acf7387ccab0d952ec7e51db8fa404fc Mon Sep 17 00:00:00 2001 From: Mark Berry Date: Tue, 15 Mar 2016 14:52:46 +0000 Subject: [PATCH 2/2] Code comments used non standard quotes, which made the file non-UTF8 --- KissXML/DDXMLNode.m | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/KissXML/DDXMLNode.m b/KissXML/DDXMLNode.m index fa734dba..23625bb2 100644 --- a/KissXML/DDXMLNode.m +++ b/KissXML/DDXMLNode.m @@ -700,8 +700,8 @@ - (DDXMLNode *)childAtIndex:(NSUInteger)index /** * Returns the previous DDXMLNode object that is a sibling node to the receiver. * - * This object will have an index value that is one less than the receiverÕs. - * If there are no more previous siblings (that is, other child nodes of the receiverÕs parent) the method returns nil. + * This object will have an index value that is one less than the receiver's. + * If there are no more previous siblings (that is, other child nodes of the receiver's parent) the method returns nil. **/ - (DDXMLNode *)previousSibling { @@ -722,8 +722,8 @@ - (DDXMLNode *)previousSibling /** * Returns the next DDXMLNode object that is a sibling node to the receiver. * - * This object will have an index value that is one more than the receiverÕs. - * If there are no more subsequent siblings (that is, other child nodes of the receiverÕs parent) the + * This object will have an index value that is one more than the receiver's. + * If there are no more subsequent siblings (that is, other child nodes of the receiver's parent) the * method returns nil. **/ - (DDXMLNode *)nextSibling @@ -745,7 +745,7 @@ - (DDXMLNode *)nextSibling /** * Returns the previous DDXMLNode object in document order. * - * You use this method to ÒwalkÓ backward through the tree structure representing an XML document or document section. + * You use this method to "walk" backward through the tree structure representing an XML document or document section. * (Use nextNode to traverse the tree in the opposite direction.) Document order is the natural order that XML * constructs appear in markup text. If you send this message to the first node in the tree (that is, the root element), * nil is returned. DDXMLNode bypasses namespace and attribute nodes when it traverses a tree in document order. @@ -799,7 +799,7 @@ - (DDXMLNode *)previousNode /** * Returns the next DDXMLNode object in document order. * - * You use this method to ÒwalkÓ forward through the tree structure representing an XML document or document section. + * You use this method to "walk" forward through the tree structure representing an XML document or document section. * (Use previousNode to traverse the tree in the opposite direction.) Document order is the natural order that XML * constructs appear in markup text. If you send this message to the last node in the tree, nil is returned. * DDXMLNode bypasses namespace and attribute nodes when it traverses a tree in document order. @@ -940,7 +940,7 @@ - (NSString *)XPath * Returns the local name of the receiver. * * The local name is the part of a node name that follows a namespace-qualifying colon or the full name if - * there is no colon. For example, ÒchapterÓ is the local name in the qualified name Òacme:chapterÓ. + * there is no colon. For example, "chapter" is the local name in the qualified name "acme:chapter". **/ - (NSString *)localName { @@ -952,11 +952,11 @@ - (NSString *)localName } /** - * Returns the prefix of the receiverÕs name. + * Returns the prefix of the receiver's name. * * The prefix is the part of a namespace-qualified name that precedes the colon. - * For example, ÒacmeÓ is the local name in the qualified name Òacme:chapterÓ. - * This method returns an empty string if the receiverÕs name is not qualified by a namespace. + * For example, "acme" is the local name in the qualified name "acme:chapter". + * This method returns an empty string if the receiver's name is not qualified by a namespace. **/ - (NSString *)prefix { @@ -1002,7 +1002,7 @@ - (void)setURI:(NSString *)URI /** * Returns the URI associated with the receiver. * - * A nodeÕs URI is derived from its namespace or a documentÕs URI; for documents, the URI comes either from the + * A node's URI is derived from its namespace or a document's URI; for documents, the URI comes either from the * parsed XML or is explicitly set. You cannot change the URI for a particular node other for than a namespace * or document node. **/