net.sf.saxon.event
Class XQueryEmitter
- Result, Receiver
public class XQueryEmitter
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.
protected void | writeEscape(CharSequence chars, boolean inAttribute) - Write contents of array to current writer, after escaping special characters.
|
attribute , characters , close , closeStartTag , comment , emptyElementTagCloser , endDocument , endElement , namespace , open , openDocument , outputCharacterReference , processingInstruction , startContent , startDocument , startElement , testCharacters , writeAttribute , writeCharSequence , writeDeclaration , writeDocType , writeEscape |
getConfiguration , getOutputProperties , getOutputStream , getPipelineConfiguration , getSystemId , getWriter , makeWriter , setOutputProperties , setOutputStream , setPipelineConfiguration , setStreamResult , setSystemId , setUnparsedEntity , setWriter , usesWriter |
writeEscape
protected void writeEscape(CharSequence chars,
boolean inAttribute)
throws IOException,
XPathException
Write contents of array to current writer, after escaping special characters.
This method converts the XML special characters (such as <32and &) into their
predefined entities.
- writeEscape in interface XMLEmitter
chars
- The character sequence containing the stringinAttribute
- Set to true if the text is in an attribute value