net.sf.saxon.s9api

Interface BuildingStreamWriter

    • Method Detail

      • getDocumentNode

        XdmNode getDocumentNode()
                                throws SaxonApiException
        After building the document by writing a sequence of events, retrieve the root node of the constructed document tree
        Returns:
        the root node of the constructed tree. The result is undefined (maybe null, maybe an exception) if the method is called before successfully completing the sequence of events (of which the last should be XMLStreamWriter.writeEndDocument()) that constructs the tree.
        Throws:
        SaxonApiException - if any failure occurs
      • setInventPrefixes

        void setInventPrefixes(boolean invent)
        Say whether prefixes are to be invented when none is specified by the user
        Parameters:
        invent - true if prefixes are to be invented. Default is true.
      • isInventPrefixes

        boolean isInventPrefixes()
        Ask whether prefixes are to be invented when none is specified by the user
        Returns:
        true if prefixes are to be invented. Default is true.
      • setCheckValues

        void setCheckValues(boolean check)
        Say whether names and values are to be checked for conformance with XML rules
        Parameters:
        check - true if names and values are to be checked. Default is true.
      • isCheckValues

        boolean isCheckValues()
        Ask whether names and values are to be checked for conformance with XML rules
        Returns:
        true if names and values are to be checked. Default is true.

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.