Examples

Provides example snippets to understand the use of SDMParser APIs.

ETag Support

This code snippet is used to extract an ETag attribute of an atom-entry using the SDMParser library.

NSMutableArray *entries = nil;           
//Get all entries in a given collection
entries = sdmParseODataEntriesXML([request responseData], collection.entitySchema, nil);
for(int i=0; i<[entries count];i++) {
SDMODataEntry *entry = [entries objectAtIndex:i];
//For each entry get the ETag attribute
NSString *etag = [entry getEtag];
}