## Uses of Class
javax.xml.stream.XMLOutputFactory

- Packages that use XMLOutputFactory
  Package | Description
  --- | ---
  javax.xml.stream |

- - ### Uses of XMLOutputFactory in javax.xml.stream

    Methods in javax.xml.stream that return XMLOutputFactory
    Modifier and Type | Method | Description
    --- | --- | ---
    `static XMLOutputFactory` | XMLOutputFactory.`newFactory()` Create a new instance of the factory.
    `static XMLOutputFactory` | XMLOutputFactory.`newFactory(String factoryId, ClassLoader classLoader)` Create a new instance of the factory.
    `static XMLOutputFactory` | XMLOutputFactory.`newInstance()` Creates a new instance of the factory in exactly the same manner as the `newFactory()` method.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.