org.w3c.dom

Interface ProcessingInstruction

  • All Superinterfaces:
    Node

    public interface ProcessingInstruction
    extends Node
    The ProcessingInstruction interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.

    No lexical check is done on the content of a processing instruction and it is therefore possible to have the character sequence "?>" in the content, which is illegal a processing instruction per section 2.6 of [XML 1.0]. The presence of this character sequence must generate a fatal error during serialization.

    See also the Document Object Model (DOM) Level 3 Core Specification.

    • Method Detail

      • getTarget

        String getTarget()
        The target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction.
      • getData

        String getData()
        The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.
      • setData

        void setData(String data)
                     throws DOMException
        The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.
        Throws:
        DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 31/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-org/w3c/dom/ProcessingInstruction.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, ProcessingInstruction

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut