Latest 0.2
Homepage https://github.com/youknowone/ObjectXML
License 2-clause BSD
Platforms osx , ios , tvos , watchos , requires ARC
Dependencies cdebug
Authors

@mainpage

Abstract

ObjectXML is objective-c object model wrapper for NSXMLParser.

Download

git clone git://github.com/youknowone/ObjectXML.git
cd ObjectXML
git submodule update --init

Document

Document on github: [http://youknowone.github.com/ObjectXML] (http://youknowone.github.com/ObjectXML)

Seeing OXNode, OXText and OXAttributeDictionary are enough.

Quick tutorial

#import <ObjectXML/ObjectXML.h>
OXNode *node = [OXNode nodeWithContentOfString:@"<aml><title>App Title</title><data id="1">OK1</data><data id="2">OK2</data></aml>"
NSLog(@"node name: %@", node.name); // aml

for (OXElement *e in node.children) {
    NSLog(@"nodes: %@", e);
    // 1: nodes: <title>App Title</title>
    // 2: nodes: <data id="1">OK1</data>
    // 3: nodes: <data id="2">OK2</data>
}

for (OXElement *e in [node.children byName:@"data"]) {
    NSLog(@"name: %@ / id: %@ / text: %@", e.name, [e.attributes objectForKey:@"id"], e.firstTextChild);
    // 1: name: data / id: 1 / text: OK1
    // 2: name: data / id: 2 / text: OK2
}

Latest podspec

{
    "name": "ObjectXML",
    "version": "0.2",
    "summary": "Simple XML object model for Objective-C from NSXMLParser.",
    "homepage": "https://github.com/youknowone/ObjectXML",
    "license": "2-clause BSD",
    "authors": {
        "Jeong YunWon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/youknowone/ObjectXML.git",
        "tag": "0.2"
    },
    "requires_arc": true,
    "source_files": "ObjectXML",
    "public_header_files": "ObjectXML/*.h",
    "libraries": "xml2",
    "dependencies": {
        "cdebug": [
            ">= 1.0"
        ]
    },
    "platforms": {
        "osx": null,
        "ios": null,
        "tvos": null,
        "watchos": null
    }
}

Pin It on Pinterest

Share This