Released

  1. 23 February 2010


Download

  1. TBXML-V1.3.zip

  2. XMLBooks-V1.3.zip


Features

  1. BulletAdded new - (id)initWithXMLFile:(NSString*)aXMLFile Function. You no longer need to pass the extension as a separate parameter.

  2. BulletAdded helper methods for instantiating a TBXML object.


Bug Fixes

  1. BulletAdded detection of single quotes as well as double quotes.

  2. BulletChanged all encoding types to NSUTF8StringEncoding.

  3. BulletFixed string length detection.


WARNING

  1. The following functions have been changed from instance methods to class methods.



















  1. This means you will need to change your code to call these methods as class methods instead of instance methods. You do this as shown in the following example.














  1. Code changed after TBXML version 1.3













Version 1.3


+ (NSString*) elementName:(TBXMLElement*)aXMLElement;


+ (NSString*) textForElement:(TBXMLElement*)aXMLElement;


+ (NSString*) valueOfAttributeNamed:(NSString *)aName forElement:(TBXMLElement*)aXMLElement;


+ (NSString*) attributeName:(TBXMLAttribute*)aXMLAttribute;


+ (NSString*) attributeValue:(TBXMLAttribute*)aXMLAttribute;


+ (TBXMLElement*) nextSiblingNamed:(NSString*)aName searchFromElement:(TBXMLElement*)aXMLElement;


+ (TBXMLElement*) childElementNamed:(NSString*)aName parentElement:(TBXMLElement*)aParentXMLElement;

// Load and parse the books.xml file

TBXML * myTbxmlObject = [[TBXML alloc] initWithXMLFile:@"books"

                                         fileExtension:@"xml"];


// If TBXML found a root node, get the root node name

if (myTbxmlObject.rootXMLElement)

    NSString * myDocRootNodeName =

        [myTbxmlObject elementName:myTbxmlObject.rootXMLElement];


// release resources

[myTbxmlObject release];

// Load and parse the books.xml file

TBXML * myTbxmlObject = [[TBXML alloc] initWithXMLFile:@"books"

                                         fileExtension:@"xml"];


// If TBXML found a root node, get the root node name

if (myTbxmlObject.rootXMLElement)

    NSString * myDocRootNodeName =

        [TBXML elementName:myTbxmlObject.rootXMLElement];


// release resources

[myTbxmlObject release];

Released

  1. 11 November 2009


Download

  1. TBXML-V1.2.zip

  2. XMLBooks-V1.2.zip


Features

  1. BulletAdded an initialiser to allow parsing of an NSData object.

  2. BulletAdded an initialiser to download and parse a file from the given NSURL.

  3. BulletAdded support for multiple CDATA sections within attributes and element text.

  4. BulletAdded full support for comments.


Bug Fixes

  1. BulletProperly clear text values when elements have children.

  2. BulletRemoved all whitespace from element text, attribute names and attribute values.

  3. BulletCheck for NULL's when obtaining element text, attribute names and attribute values.

  4. BulletFixed memory leak where bytes was not freed during dealloc.


Version 1.2

Released

  1. 12 October 2009


Download

  1. TBXML-V1.1.zip

  2. XMLBooks-V1.1.zip


Features

  1. BulletAdded an initialiser to allow parsing of an XML string rather than a file.


Bug Fixes

  1. BulletFixed a bug where searching for a node or attribute only compared names upto the length of search the string. This resulted in nodes and attributes being returned that didn't exactly match the search string.


Version 1.1

Released

  1. 18 September 2009


Download

  1. TBXML-V1.0.zip

  2. XMLBooks-V1.0.zip

Version 1.0 (Original Version)

Released

  1. 20 May 2010


Download

  1. TBXML.zip

  2. TBXML-Books.zip


Bug Fixes

  1. BulletCorrected allocation of elements / attributes causing buffer overrun

Version 1.4