org.w3c.dom.ProcessingInstruction Maven / Gradle / Ivy
The newest version!
// Copyright (c) 1998 by W3C
//
// DOM is a trademark of W3C
// The DOM level 1 specification, from which this
// source is derived, is copyright by W3C.
// See: http://www.w3.org/TR/REC-DOM-Level-1/
//
package org.w3c.dom;
/**
The ProcessingInstruction
interface
represents a "processing instruction", used in XML
as a way to keep processor-specific information in the text of the
document.
Property Summary
target
getTarget
The target of this processing instruction. XML defines this as
being the first token following the markup that begins the processing
instruction.
data
getData
setData
The content of this processing instruction. This
is from the first non white space character after the target
to the character immediately preceding the ?>
.
*/
public interface ProcessingInstruction
extends Node
{
/**
* Returns the value of the target
property.
*/
String getTarget ();
/** Assigns the value of the data
property.
* @exception DOMException NO_MODIFICATION_ALLOWED_ERR: Raised when the node is
readonly.
*/
void setData (String data) throws DOMException;
/**
* Returns the value of the data
property.
*/
String getData ();
}