Comments (1)
@jvanlint Hi! It seems like in the first Dashboard tag you have three elements: 1 Name and 2 KPI's; while in the second you have 1 KPI and 1 Name.
The second Dashboard parses to a @{@Name:@"Test Board", @"KPI":@{...}}
dictionary, which sounds fairly reasonable
The first Dashboard, however, has two KPI objects, so they are parsed into an array of dictionaries that you can reference by KPI key. That makes perfect sense as well, since you can't have two distinct objects stored by the same key.
If you want to use consistent keypaths, you should try setting alwaysUseArrays
to YES
so that the second dashboard dictionary will have an array of a single KPI instead of a dictionary under @"KPI"
key.
Hope this helps
from xmldictionary.
Related Issues (20)
- CocoaPods support? HOT 5
- problem with empty elements
- closed
- Fail to parse CData HOT 2
- XMLDictionary Crashing when being used within NSURLSessionDataTask Completion block
- If XML Data has XML declarations, boom!
- support for watchos2 (pod) HOT 3
- tvos support HOT 1
- Attribute parsing for XML response HOT 1
- Issue in parsing an array from XML
- XMLString returning plist HOT 4
- XMLDictionary.m:130:67: Multiple methods named 'count' found with mismatched result, parameter type or attributes. HOT 2
- XMLDictionary should handle NSXMLParser Errors
- How to create null node by XMLString Method
- Handle invalid xmlChar HOT 2
- How to grab XML file on Desktop HOT 6
- accidental post... :(
- parser less HOT 3
- How to convert Dictionary to XML HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmldictionary.