-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSWXMLTags.h
33 lines (23 loc) · 978 Bytes
/
SWXMLTags.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// SWXMLTags.h
// This file is part of the "SWXMLMapping" project, and is distributed under the MIT License.
//
// Created by Samuel Williams on 13/11/05.
// Copyright 2005 Samuel Williams. All rights reserved.
//
/*
This is used for generating basic XML tags from strings.
*/
#import <Foundation/Foundation.h>
@interface SWXMLTags : NSObject {
}
// returns <?xml ... ?> tag for use with the output of these tags at the head of a file.
+ (NSString*) tagForXML;
+ (NSString*) tagNamed: (NSString*)name;
+ (NSString*) tagNamed: (NSString*)name forValue: (NSString*)value;
+ (NSString*) tagNamed: (NSString*)name forCDATA: (NSString*)value;
/* Returns a string of key="value" */
+ (NSString*) formatAttributes: (NSDictionary*)attributes;
+ (NSString*) tagNamed: (NSString*)name forValue: (NSString*)value withAttributes: (NSDictionary*)attributes;
+ (NSString*) tagNamed: (NSString*)name forCDATA: (NSString*)value withAttributes: (NSDictionary*)attributes;
@end