public interface XMLExtendedStreamWriter extends XMLStreamWriter
Modifier and Type | Method and Description |
---|---|
void |
setUnspecifiedElementNamespace(String namespace)
Sets the namespace to use for child element writes when a namespace is not specified.
|
void |
writeAttribute(String localName,
Iterable<String> value) |
void |
writeAttribute(String localName,
String[] values) |
void |
writeAttribute(String namespaceURI,
String localName,
Iterable<String> value) |
void |
writeAttribute(String namespaceURI,
String localName,
String[] values) |
void |
writeAttribute(String prefix,
String namespaceURI,
String localName,
Iterable<String> value) |
void |
writeAttribute(String prefix,
String namespaceURI,
String localName,
String[] values) |
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
void writeAttribute(String localName, String[] values) throws XMLStreamException
XMLStreamException
void writeAttribute(String prefix, String namespaceURI, String localName, String[] values) throws XMLStreamException
XMLStreamException
void writeAttribute(String namespaceURI, String localName, String[] values) throws XMLStreamException
XMLStreamException
void writeAttribute(String localName, Iterable<String> value) throws XMLStreamException
XMLStreamException
void writeAttribute(String prefix, String namespaceURI, String localName, Iterable<String> value) throws XMLStreamException
XMLStreamException
void writeAttribute(String namespaceURI, String localName, Iterable<String> value) throws XMLStreamException
XMLStreamException
void setUnspecifiedElementNamespace(String namespace)
XMLStreamWriter.writeStartElement(String)
is called this namespace
will be used. Setting this to null will result in the standard behavior, which is
usage of the xml default ns (not specifying a prefix)
This setting is scoped within the document or element that it was called in. Once
called all further child elements will use this namespace. In addition, it is
inherited for all levels of nesting. In other words, setting an unspecified namespace
on a grandchild will not affect the namespace setting of a child sibling.
To clear the effect of this setting, call the method with a value of null.namespace
- The namespace to use when not specified on elements, or null
if the xml default ns should be usedCopyright © 2016 JBoss by Red Hat. All rights reserved.