< prev index next >

src/java.xml/share/classes/javax/xml/stream/XMLOutputFactory.java

Print this page




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.stream;
  27 
  28 import com.sun.xml.internal.stream.XMLOutputFactoryImpl;
  29 import javax.xml.transform.Result;
  30 
  31 /**
  32  * Defines an abstract implementation of a factory for
  33  * getting XMLEventWriters and XMLStreamWriters.
  34  *
  35  * The following table defines the standard properties of this specification.
  36  * Each property varies in the level of support required by each implementation.
  37  * The level of support required is described in the 'Required' column.
  38  *
  39  *     <table border="2" rules="all" cellpadding="4">

  40  *     <thead>
  41  *      <tr>
  42  *        <th align="center" colspan="2">
  43  *          Configuration parameters
  44  *        </th>
  45  *      </tr>
  46  *    </thead>
  47  *    <tbody>
  48  *      <tr>
  49  *        <th>Property Name</th>
  50  *        <th>Behavior</th>
  51  *        <th>Return type</th>
  52  *        <th>Default Value</th>
  53  *        <th>Required</th>
  54  *              </tr>


  55  *         <tr><td>javax.xml.stream.isRepairingNamespaces</td><td>defaults prefixes
  56  *                 on the output side</td><td>Boolean</td><td>False</td><td>Yes</td></tr>
  57  *      </tbody>
  58  *   </table>
  59  *
  60  * <p>The following paragraphs describe the namespace and prefix repair algorithm:
  61  *
  62  * <p>The property can be set with the following code line:
  63  * {@code setProperty("javax.xml.stream.isRepairingNamespaces", new Boolean(true|false));}
  64  *
  65  * <p>This property specifies that the writer default namespace prefix declarations.
  66  * The default value is false.
  67  *
  68  * <p>If a writer isRepairingNamespaces it will create a namespace declaration
  69  * on the current StartElement for
  70  * any attribute that does not
  71  * currently have a namespace declaration in scope.  If the StartElement
  72  * has a uri but no prefix specified a prefix will be assigned, if the prefix
  73  * has not been declared in a parent of the current StartElement it will be declared
  74  * on the current StartElement.  If the defaultNamespace is bound and in scope




  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.stream;
  27 
  28 import com.sun.xml.internal.stream.XMLOutputFactoryImpl;
  29 import javax.xml.transform.Result;
  30 
  31 /**
  32  * Defines an abstract implementation of a factory for
  33  * getting XMLEventWriters and XMLStreamWriters.
  34  *
  35  * The following table defines the standard properties of this specification.
  36  * Each property varies in the level of support required by each implementation.
  37  * The level of support required is described in the 'Required' column.
  38  *
  39  *     <table class="striped">
  40  *     <caption>Configuration Parameters</caption>
  41  *     <thead>
  42  *      <tr>







  43  *        <th>Property Name</th>
  44  *        <th>Behavior</th>
  45  *        <th>Return type</th>
  46  *        <th>Default Value</th>
  47  *        <th>Required</th>
  48  *              </tr>
  49  *    </thead>
  50  *    <tbody>
  51  *         <tr><td>javax.xml.stream.isRepairingNamespaces</td><td>defaults prefixes
  52  *                 on the output side</td><td>Boolean</td><td>False</td><td>Yes</td></tr>
  53  *      </tbody>
  54  *   </table>
  55  *
  56  * <p>The following paragraphs describe the namespace and prefix repair algorithm:
  57  *
  58  * <p>The property can be set with the following code line:
  59  * {@code setProperty("javax.xml.stream.isRepairingNamespaces", new Boolean(true|false));}
  60  *
  61  * <p>This property specifies that the writer default namespace prefix declarations.
  62  * The default value is false.
  63  *
  64  * <p>If a writer isRepairingNamespaces it will create a namespace declaration
  65  * on the current StartElement for
  66  * any attribute that does not
  67  * currently have a namespace declaration in scope.  If the StartElement
  68  * has a uri but no prefix specified a prefix will be assigned, if the prefix
  69  * has not been declared in a parent of the current StartElement it will be declared
  70  * on the current StartElement.  If the defaultNamespace is bound and in scope


< prev index next >