Java Code Examples for org.apache.xpath.objects.XObject#dispatchCharactersEvents()
The following examples show how to use
org.apache.xpath.objects.XObject#dispatchCharactersEvents() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FuncNormalizeSpace.java From j2objc with Apache License 2.0 | 6 votes |
/** * Execute an expression in the XPath runtime context, and return the * result of the expression. * * * @param xctxt The XPath runtime context. * * @return The result of the expression in the form of a <code>XObject</code>. * * @throws javax.xml.transform.TransformerException if a runtime exception * occurs. */ public void executeCharsToContentHandler(XPathContext xctxt, ContentHandler handler) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException { if(Arg0IsNodesetExpr()) { int node = getArg0AsNode(xctxt); if(DTM.NULL != node) { DTM dtm = xctxt.getDTM(node); dtm.dispatchCharactersEvents(node, handler, true); } } else { XObject obj = execute(xctxt); obj.dispatchCharactersEvents(handler); } }
Example 2
Source File: Expression.java From j2objc with Apache License 2.0 | 3 votes |
/** * Execute an expression in the XPath runtime context, and return the * result of the expression. * * * @param xctxt The XPath runtime context. * NEEDSDOC @param handler * * @return The result of the expression in the form of a <code>XObject</code>. * * @throws javax.xml.transform.TransformerException if a runtime exception * occurs. * @throws org.xml.sax.SAXException */ public void executeCharsToContentHandler( XPathContext xctxt, ContentHandler handler) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException { XObject obj = execute(xctxt); obj.dispatchCharactersEvents(handler); obj.detach(); }