From 4d4ae2dadde49715fb8445a827e88e7551bbcef4 Mon Sep 17 00:00:00 2001 From: Badchoice Date: Tue, 4 Aug 2015 16:55:38 +0200 Subject: [PATCH 1/5] Fixes XML string creation for arrays --- XMLDictionary/XMLDictionary.m | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/XMLDictionary/XMLDictionary.m b/XMLDictionary/XMLDictionary.m index a7f7ab0..18445aa 100644 --- a/XMLDictionary/XMLDictionary.m +++ b/XMLDictionary/XMLDictionary.m @@ -130,9 +130,10 @@ + (NSString *)XMLStringForNode:(id)node withNodeName:(NSString *)nodeName NSMutableArray *nodes = [NSMutableArray arrayWithCapacity:[node count]]; for (id individualNode in node) { - [nodes addObject:[self XMLStringForNode:individualNode withNodeName:nodeName]]; + //[nodes addObject:[self XMLStringForNode:individualNode withNodeName:nodeName]]; + [nodes addObject:[self XMLStringForNode:individualNode withNodeName:nil]]; } - return [nodes componentsJoinedByString:@"\n"]; + return [NSString stringWithFormat:@"<%@>%@",nodeName,[nodes componentsJoinedByString:@"\n"],nodeName]; } else if ([node isKindOfClass:[NSDictionary class]]) { @@ -146,7 +147,15 @@ + (NSString *)XMLStringForNode:(id)node withNodeName:(NSString *)nodeName NSString *innerXML = [node innerXML]; if ([innerXML length]) { - return [NSString stringWithFormat:@"<%1$@%2$@>%3$@", nodeName, attributeString, innerXML]; + if(nodeName) + { + return [NSString stringWithFormat:@"<%1$@%2$@>%3$@", nodeName, attributeString, innerXML]; + } + else + { + return [NSString stringWithFormat:@"%@", innerXML]; + } + //return [NSString stringWithFormat:@"<%1$@%2$@>%3$@", nodeName, attributeString, innerXML]; } else { From d7ddabd3cea1698489de071600629aa16efe8b0e Mon Sep 17 00:00:00 2001 From: Badchoice Date: Tue, 4 Aug 2015 16:57:39 +0200 Subject: [PATCH 2/5] removed comments --- XMLDictionary/XMLDictionary.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/XMLDictionary/XMLDictionary.m b/XMLDictionary/XMLDictionary.m index 18445aa..58d38d4 100644 --- a/XMLDictionary/XMLDictionary.m +++ b/XMLDictionary/XMLDictionary.m @@ -130,7 +130,6 @@ + (NSString *)XMLStringForNode:(id)node withNodeName:(NSString *)nodeName NSMutableArray *nodes = [NSMutableArray arrayWithCapacity:[node count]]; for (id individualNode in node) { - //[nodes addObject:[self XMLStringForNode:individualNode withNodeName:nodeName]]; [nodes addObject:[self XMLStringForNode:individualNode withNodeName:nil]]; } return [NSString stringWithFormat:@"<%@>%@",nodeName,[nodes componentsJoinedByString:@"\n"],nodeName]; @@ -155,7 +154,6 @@ + (NSString *)XMLStringForNode:(id)node withNodeName:(NSString *)nodeName { return [NSString stringWithFormat:@"%@", innerXML]; } - //return [NSString stringWithFormat:@"<%1$@%2$@>%3$@", nodeName, attributeString, innerXML]; } else { From 3bd66d881028bad316aa15475009fd765becdedc Mon Sep 17 00:00:00 2001 From: Eduard Duocastella Altimira Date: Mon, 20 Nov 2017 11:27:54 +0100 Subject: [PATCH 3/5] fixed podspec --- XMLDictionary.podspec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/XMLDictionary.podspec b/XMLDictionary.podspec index c2260e5..cd4261f 100644 --- a/XMLDictionary.podspec +++ b/XMLDictionary.podspec @@ -1,13 +1,13 @@ Pod::Spec.new do |s| s.name = "XMLDictionary" - s.version = "1.4" + s.version = "1.5" s.license = { :type => 'zlib', :file => 'LICENCE.md' } s.summary = "XMLDictionary is a class designed to simplify parsing and generating of XML on iOS and Mac OS." - s.homepage = "https://github.com/nicklockwood/XMLDictionary" - s.authors = "Nick Lockwood" - s.source = { :git => "https://github.com/nicklockwood/XMLDictionary.git", :tag => "1.4" } + s.homepage = "https://github.com/BadChoice/XMLDictionary" + s.authors = "BadChoice" + s.source = { :git => "https://github.com/BadChoice/XMLDictionary.git", :tag => "1.5" } s.source_files = 'XMLDictionary' s.requires_arc = true - s.ios.deployment_target = '4.3' + s.ios.deployment_target = '8.0' s.osx.deployment_target = '10.6' end From cefc9f4858e4bcfd109e90fe8646b11f4669a298 Mon Sep 17 00:00:00 2001 From: Eduard Duocastella Altimira Date: Mon, 20 Nov 2017 20:10:23 +0100 Subject: [PATCH 4/5] fixed name --- XMLDictionary.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XMLDictionary.podspec b/XMLDictionary.podspec index cd4261f..f7b361e 100644 --- a/XMLDictionary.podspec +++ b/XMLDictionary.podspec @@ -1,8 +1,8 @@ Pod::Spec.new do |s| - s.name = "XMLDictionary" + s.name = "RVXMLDictionary" s.version = "1.5" s.license = { :type => 'zlib', :file => 'LICENCE.md' } - s.summary = "XMLDictionary is a class designed to simplify parsing and generating of XML on iOS and Mac OS." + s.summary = "RVXMLDictionary is a class designed to simplify parsing and generating of XML on iOS and Mac OS." s.homepage = "https://github.com/BadChoice/XMLDictionary" s.authors = "BadChoice" s.source = { :git => "https://github.com/BadChoice/XMLDictionary.git", :tag => "1.5" } From 1f5ada8eb7f8f6c47f1877754c5bfb3e47723b1f Mon Sep 17 00:00:00 2001 From: Eduard Duocastella Altimira Date: Tue, 21 Nov 2017 11:30:15 +0100 Subject: [PATCH 5/5] renamed pod file --- XMLDictionary.podspec => RVXMLDictionary.podspec | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename XMLDictionary.podspec => RVXMLDictionary.podspec (100%) diff --git a/XMLDictionary.podspec b/RVXMLDictionary.podspec similarity index 100% rename from XMLDictionary.podspec rename to RVXMLDictionary.podspec