01: /*
02: * Copyright (c) 2000 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * PURPOSE.
10: * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11: */
12:
13: package org.w3c.dom;
14:
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>.
20: */
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.
26: */
27: public String getTarget();
28:
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>?></code>.
33: * @exception DOMException
34: * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
35: */
36: public String getData();
37:
38: /**
39: * The content of this processing instruction. This is from the first non
40: * white space character after the target to the character immediately
41: * preceding the <code>?></code>.
42: * @exception DOMException
43: * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
44: */
45: public void setData(String data) throws DOMException;
46:
47: }
|