1adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project/* 2320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * Copyright (c) 2004 World Wide Web Consortium, 3320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * 4320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * (Massachusetts Institute of Technology, European Research Consortium for 5320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * Informatics and Mathematics, Keio University). All Rights Reserved. This 6320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * work is distributed under the W3C(r) Software License [1] in the hope that 7320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * it will be useful, but WITHOUT ANY WARRANTY; without even the implied 8320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * 10320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 11adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */ 12adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 13adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Projectpackage org.w3c.dom; 14adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 15adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project/** 16f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * The <code>ProcessingInstruction</code> interface represents a "processing 17f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * instruction", used in XML as a way to keep processor-specific information 18adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * in the text of the document. 19f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * <p> No lexical check is done on the content of a processing instruction and 20f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * it is therefore possible to have the character sequence 21f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * <code>"?>"</code> in the content, which is illegal a processing 22f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * instruction per section 2.6 of [<a href='http://www.w3.org/TR/2004/REC-xml-20040204'>XML 1.0</a>]. The 23f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * presence of this character sequence must generate a fatal error during 24f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * serialization. 25320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>. 26adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */ 27adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Projectpublic interface ProcessingInstruction extends Node { 28adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project /** 29f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * The target of this processing instruction. XML defines this as being 30f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * the first token following the markup that begins the processing 31adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * instruction. 32adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */ 33adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project public String getTarget(); 34adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 35adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project /** 36f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * The content of this processing instruction. This is from the first non 37f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * white space character after the target to the character immediately 38320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * preceding the <code>?></code>. 39adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */ 40adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project public String getData(); 41adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project /** 42f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * The content of this processing instruction. This is from the first non 43f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * white space character after the target to the character immediately 44adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * preceding the <code>?></code>. 45adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * @exception DOMException 46adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project * NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. 47adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project */ 48adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project public void setData(String data) 49320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson throws DOMException; 50adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project 51adc854b798c1cfe3bfd4c27d68d5cee38ca617daThe Android Open Source Project} 52