A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. Even if an XML processor ignores processing instructions, it will give them a place in the DOM.
A processing instruction is different from the XML declaration, which supplies information about the document such as character encoding, and can only appear as the first item in a document.
User-defined processing instructions cannot begin with '
xml', as these are reserved (such as
Processing instructions inherit methods and properties from
- target (DOMString) - after the
<?and before whitespace separating it from
- data (DOMString) - first non-whitespace character after