Latest 0.1.0
Homepage https://github.com/Big-Pi/PiXMLParserLogger
License MIT
Platforms ios 7.0, requires ARC
Authors

Version
License
Platform

Pretty Format NSXMLParser for Log

Usage

    NSXMLParser *parser=[[NSXMLParser alloc]initWithData:data];
    [parser prettyXML:^(NSString *xml) {
        NSLog(@"%@",xml);
    }];

OutPut:  

XML Parse Start============================

<breakfast_menu>
    <food>
        <name>Belgian Waffles</name>
        <price>$5.95</price>
        <description>two of our famous Belgian Waffles with plenty of real maple syrup</description>
        <calories>650</calories>
    </food>
    <food>
        <name>Strawberry Belgian Waffles</name>
        <price>$7.95</price>
        <description>light Belgian waffles covered with strawberries and whipped cream</description>
        <calories>900</calories>
    </food>
    <food>
        <name>Berry-Berry Belgian Waffles</name>
        <price>$8.95</price>
        <description>light Belgian waffles covered with an assortment of fresh berries and whipped cream</description>
        <calories>900</calories>
    </food>
    <food>
        <name>French Toast</name>
        <price>$4.50</price>
        <description>thick slices made from our homemade sourdough bread</description>
        <calories>600</calories>
    </food>
    <food>
        <name>Homestyle Breakfast</name>
        <price>$6.95</price>
        <description>two eggs, bacon or sausage, toast, and our ever-popular hash browns</description>
        <calories>950</calories>
    </food>
</breakfast_menu>

XML Parse End===========================

Installation

PiXMLParserLogger is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "PiXMLParserLogger"

Or simply drag NSXMLParser+PiLogger.h .m into your project

Author

BigPi, [email protected]

License

PiXMLParserLogger is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PiXMLParserLogger",
    "version": "0.1.0",
    "summary": "Pretty Format NSXMLParser for Log",
    "description": "Pretty Format NSXMLParser for Log.",
    "homepage": "https://github.com/Big-Pi/PiXMLParserLogger",
    "license": "MIT",
    "authors": {
        "BigPi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Big-Pi/PiXMLParserLogger.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "PiXMLParserLogger": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This