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

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

lineBreak

lineBreak string

@property (atomic, retain, readwrite) NSString *lineBreak

Return Value

lineBreak string

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

writeIndentation

write indentation, if any

- (void)writeIndentation

Declared In

XMLWriter.h

writeLinebreak

helpful for formatting, special needs write linebreak, if any

- (void)writeLinebreak

Declared In

XMLWriter.h

writeNamespaceAttributes

write any outstanding namespace declaration attributes in a start element

- (void)writeNamespaceAttributes

Declared In

XMLWriter.h