Document Content Types

Define document types.


You specify one of the NSXMLDocumentContentKind constants in documentContentKind to indicate the kind of content required for document output.



case xml

The default type of document content type, which is XML.

case xhtml

The document output is XHTML.

case html

Outputs empty tags in HTML without a close tag, such as <br>.

case text

Outputs the string value of the document by extracting the string values from all text nodes.