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.
  11. */
  12. package org.w3c.dom;
  13. /**
  14. * The <code>ProcessingInstruction</code> interface represents a "processing
  15. * instruction", used in XML as a way to keep processor-specific information
  16. * in the text of the document.
  17. * <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>.
  18. */
  19. public interface ProcessingInstruction extends Node {
  20. /**
  21. * The target of this processing instruction. XML defines this as being
  22. * the first token following the markup that begins the processing
  23. * instruction.
  24. */
  25. public String getTarget();
  26. /**
  27. * The content of this processing instruction. This is from the first non
  28. * white space character after the target to the character immediately
  29. * preceding the <code>?></code>.
  30. * @exception DOMException
  31. * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
  32. */
  33. public String getData();
  34. /**
  35. * The content of this processing instruction. This is from the first non
  36. * white space character after the target to the character immediately
  37. * preceding the <code>?></code>.
  38. * @exception DOMException
  39. * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
  40. */
  41. public void setData(String data)
  42. throws DOMException;
  43. }