< DOMProcessingInstruction > Protocol Reference

Inheritance diagram for < DOMProcessingInstruction >:

< DOMNode > DOMProcessingInstruction List of all members.

Detailed Description

Represents a processing instruction in a XML-document. A processing instruction (pi) is a tag that looks like this:

 <?target content-string?>

An exception will be raised if the target matches the string "xml" in any combination of case.

The <?xml version="1.0"?> declaration is not part of the document, it will be created during serialization.


Public Member Functions

(void)  setData:
(NSString *)  data
(void)  setTarget:
(NSString *)  target

Member Function Documentation

- (NSString *) data  
 

Returns the content of this processing instruction as a string.

- (void) setData: (NSString *)  string  
 

Sets the string of this processing instruction.

- (void) setTarget: (NSString *)  target  
 

Sets the target/name of this pi.

Exceptions:
DOMSyntaxException Raised if the target matches the string "xml" in any combination of case. The <?xml version="1.0"?> declaration is not part of the document, it will be created during serialization.

- (NSString *) target  
 

Returns the target/name of this pi.