Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. ProcessingInstruction
Table of contents
  1. 1. Attributes
  2. 2. Specification
  3. 3. See also
Table of contents
  1. 1. Attributes
  2. 2. Specification
  3. 3. See also

« Gecko DOM Reference

A processing instruction provides an opportunity for application-specific instructions to be embedded within XML and which can be ignored by XML processors which do not support processing their instructions (outside of their having a place in the DOM).

A Processing instruction is distinct from a XML Declaration which is used for other information about the document such as encoding and which appear (if it does) as the first item in the document.

User-defined processing instructions cannot begin with 'xml', as these are reserved (e.g., as used in <?xml-stylesheet ?>).

Attributes

  • target (DOMString) - after the <? and before whitespace delimiting it from data
  • data (DOMString) - first non-whitespace character after target and before ?>

Page last modified 03:13, 6 Jul 2008 by George3

Files (0)