Indivo Framework (iOS)
An iOS framework for Apps connecting to Indivo server
 All Classes Functions Variables Properties Pages
Class Methods | List of all members
INXMLParser Class Reference

A simle XML Parser to parse XML into our XML nodes. More...

#import <INXMLParser.h>

Inherits NSObject, and <NSXMLParserDelegate>.

Class Methods

(INXMLNode *) + parseXML:error:
 Returns a dictionary generated from parsing the given XML string. More...
 
(BOOL) + validateXML:againstXSD:error:
 Validates an XML string against an XSD at the given path. More...
 

Detailed Description

A simle XML Parser to parse XML into our XML nodes.

Method Documentation

+ (INXMLNode *) parseXML: (NSString *)  xmlString
error: (NSError * __autoreleasing *)  error 

Returns a dictionary generated from parsing the given XML string.

Starts parsing the given XML string.

This method only returns once parsing has completed. So think of performing the parsing on a separate thread if it could take a long time.

Parameters
xmlStringAn NSString containing the XML to parse
errorAn NSError pointer which is guaranteed to not be nil if this method returns NO and a pointer was provided
Returns
An NSDictionary representing the XML structure, or nil if parsing failed
+ (BOOL) validateXML: (NSString *)  xmlString
againstXSD: (NSString *)  xsdPath
error: (__autoreleasing NSError **)  error 

Validates an XML string against an XSD at the given path.

Boldy transcribed from: http://knol2share.blogspot.com/2009/05/validate-xml-against-xsd-in-c.html


The documentation for this class was generated from the following files: