This commit was manufactured by cvs2svn to create branch 'gomp-branch'.
[official-gcc.git] / libjava / org / w3c / dom / ProcessingInstruction.java
blobe3cfd1b0d6eb9470d460688c672fe65a0446525b
1 /*
2 * Copyright (c) 2000 World Wide Web Consortium,
3 * (Massachusetts Institute of Technology, Institut National de
4 * Recherche en Informatique et en Automatique, Keio University). All
5 * Rights Reserved. This program is distributed under the W3C's Software
6 * Intellectual Property License. This program is distributed in the
7 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 * PURPOSE.
10 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
13 package org.w3c.dom;
15 /**
16 * The <code>ProcessingInstruction</code> interface represents a "processing
17 * instruction", used in XML as a way to keep processor-specific information
18 * in the text of the document.
19 * <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>.
21 public interface ProcessingInstruction extends Node {
22 /**
23 * The target of this processing instruction. XML defines this as being
24 * the first token following the markup that begins the processing
25 * instruction.
27 public String getTarget();
29 /**
30 * The content of this processing instruction. This is from the first non
31 * white space character after the target to the character immediately
32 * preceding the <code>?&gt;</code>.
33 * @exception DOMException
34 * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
36 public String getData();
37 public void setData(String data)
38 throws DOMException;