|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuildingStreamWriter
A BuildingStreamWriter allows a document to be constructed by calling the methods defined in the
XMLStreamWriter
interface; after the document has been constructed, its root
node may be retrieved by calling the getDocumentNode() method.
The class will attempt to generate namespace prefixes where none have been supplied, unless the
inventPrefixes
option is set to false. The preferred mode of use is to call the versions
of writeStartElement
and writeAttribute
that supply the prefix, URI, and
local name in full. If the prefix is omitted, the class attempts to invent a prefix. If the URI is
omitted, the name is assumed to be in no namespace. The writeNamespace
The class will check all names, URIs, and character content for conformance against XML well-formedness
rules unless the checkValues
option is set to false.
Method Summary | |
---|---|
XdmNode |
getDocumentNode()
After building the document by writing a sequence of events, retrieve the root node of the constructed document tree |
boolean |
isCheckValues()
Ask whether names and values are to be checked for conformance with XML rules |
boolean |
isInventPrefixes()
Ask whether prefixes are to be invented when none is specified by the user |
void |
setCheckValues(boolean check)
Say whether names and values are to be checked for conformance with XML rules |
void |
setInventPrefixes(boolean invent)
Say whether prefixes are to be invented when none is specified by the user |
Method Detail |
---|
XdmNode getDocumentNode() throws SaxonApiException
XMLStreamWriter.writeEndDocument()
) that constructs the tree.
SaxonApiException
- if any failure occursvoid setInventPrefixes(boolean invent)
invent
- true if prefixes are to be invented. Default is true.boolean isInventPrefixes()
void setCheckValues(boolean check)
check
- true if names and values are to be checked. Default is true.boolean isCheckValues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |