public
Description: An OS X application to build a standalone web site as an export from my photo album.
Homepage: http://bleu.west.spy.net/~dustin/projects/photosync/
Clone URL: git://github.com/dustin/photosync.git
skip annotations
dustin (author)
Wed Nov 30 21:51:37 -0800 2005
commit  2dceca4018192b712c3dcbd872354326347bca00
tree    ad7e3af5f358026eee3aca0e8acc7a23e1024380
parent  08dbe9d7485be04072af84b3db49e976a0564577
...
151
152
153
 
154
155
156
...
171
172
173
 
 
174
175
176
...
189
190
191
 
 
192
193
194
195
196
197
 
198
199
200
...
151
152
153
154
155
156
157
...
172
173
174
175
176
177
178
179
...
192
193
194
195
196
197
198
199
200
201
 
202
203
204
205
0
@@ -151,6 +151,7 @@
0
 
0
 #define PS_SEC_NONE 0
0
 #define PS_SEC_ALBUM 2
0
+#define PS_SEC_ANNOTATIONS 3
0
 
0
 -(void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
0
   namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName
0
@@ -171,6 +172,8 @@
0
     [ms release];
0
   } else if([@"keyword" isEqualToString: elementName]) {
0
     [[current objectForKey: @"keywords"] addObject: [attributeDict objectForKey: @"word"]];
0
+ } else if([@"annotations" isEqualToString: elementName]) {
0
+ section=PS_SEC_ANNOTATIONS;
0
   } else {
0
     [el release];
0
     el = [elementName retain];
0
@@ -189,12 +192,14 @@
0
     [el release];
0
     el=nil;
0
     [photo release];
0
+ } else if([@"annotations" isEqualToString: elementName]) {
0
+ section=PS_SEC_ALBUM;
0
   }
0
 }
0
 
0
 -(void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
0
 {
0
- if(el != nil && current != nil) {
0
+ if(section != PS_SEC_ANNOTATIONS && el != nil && current != nil) {
0
     NSString *trimmed=[string
0
       stringByTrimmingCharactersInSet:
0
         [NSCharacterSet whitespaceAndNewlineCharacterSet]];

Comments

    No one has commented yet.