Encoding can take place either with or without a mapping model.
The mapping model provides greater control over the encoding process and is typically used when you are encoding and decoding XML that is destined for, or originates from, an external source. To encode an object, simply invoke the encodeRootObjectForKey method. Windows NT uses backslashes where other systems use forward slashes. See the RelatedLinks example for one way to select the proper prefix based upon the underlying system. The element's content is the string value of aDouble and the element has an attribute named type with a value of double .