001/*
002 * Copyright (c) 2000 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013package org.w3c.dom;
014
015/**
016 * The <code>ProcessingInstruction</code> interface represents a "processing 
017 * instruction", used in XML as a way to keep processor-specific information 
018 * in the text of the document.
019 * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document Object Model (DOM) Level 2 Core Specification</a>.
020 */
021public interface ProcessingInstruction extends Node {
022    /**
023     * The target of this processing instruction. XML defines this as being 
024     * the first token following the markup that begins the processing 
025     * instruction.
026     */
027    public String getTarget();
028
029    /**
030     * The content of this processing instruction. This is from the first non 
031     * white space character after the target to the character immediately 
032     * preceding the <code>?&gt;</code>.
033     * @exception DOMException
034     *   NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
035     */
036    public String getData();
037    public void setData(String data)
038                          throws DOMException;
039
040}