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 71 * and the default namespace matches the URI of the attribute or StartElement | 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 scope="col">Property Name</th> 44 * <th scope="col">Behavior</th> 45 * <th scope="col">Return type</th> 46 * <th scope="col">Default Value</th> 47 * <th scope="col">Required</th> 48 * </tr> 49 * </thead> 50 * <tbody> 51 * <tr><th scope="row">javax.xml.stream.isRepairingNamespaces</th><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 71 * and the default namespace matches the URI of the attribute or StartElement |