XMLWriter Class Reference
Inherits from | NSObject |
Conforms to | NSXMLStreamWriter |
Declared in | XMLWriter.h |
Overview
XMLWriter writes XML files. Mainly used for iOS since there is no built-in XML writer API for iOS. See: https://code.google.com/p/xswi/w/list
Tasks
-
indentation
property -
lineBreak
property -
automaticEmptyElements
property -
level
property -
– writeLinebreak
-
– writeIndentation
-
– writeCloseStartElement
-
– writeNamespaceAttributes
-
– writeEscape:
-
– write:
Properties
automaticEmptyElements
automatic empty elements
@property (atomic, assign, readwrite) BOOL automaticEmptyElements
Return Value
automatic empty elements
Declared In
XMLWriter.h
indentation
XML indentation string
@property (atomic, retain, readwrite) NSString *indentation
Return Value
XML indentation string
Declared In
XMLWriter.h
level
indentation level
@property (atomic, readonly) int level
Return Value
indentation level
Declared In
XMLWriter.h
Instance Methods
write:
wrote unescaped text to the stream
- (void)write:(NSString *)value
Parameters
- value
The unescaped string.
Declared In
XMLWriter.h
writeCloseStartElement
write end of start element, so that the start tag is complete
- (void)writeCloseStartElement
Declared In
XMLWriter.h
writeEscape:
write escaped text to the stream
- (void)writeEscape:(NSString *)value
Parameters
- value
The escaped string.
Declared In
XMLWriter.h