Class XQueryEmitter

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver, ReceiverWithOutputProperties

    public class XQueryEmitter
    extends XMLEmitter
    The XQueryEmitter is designed to serialize an XQuery that was originally embedded in an XML document. It is a variant of the XMLEmitter, and differs in that the operators <, >, <=, >=, <<, and >> are output without escaping. They are recognized by virtue of the fact that they appear in text or attribute content between curly braces but not in quotes.
    • Constructor Detail

      • XQueryEmitter

        public XQueryEmitter()
    • Method Detail

      • writeEscape

        protected void writeEscape​(UnicodeString chars,
                                   boolean inAttribute)
        Write contents of array to current writer, after escaping special characters. This method converts the XML special characters (such as < and &) into their predefined entities.
        writeEscape in class XMLEmitter
        chars - The character sequence containing the string
        inAttribute - Set to true if the text is in an attribute value
        Throws: - if an IO exception occurs
        XPathException - if an IO exception occurs