public void report_fatal_error(String message, Object info) throws XPathParseException{ throw new XPathParseException("Syntax error during parsing: "+ message); }
/** * Register the binding between a variableExpr name and variableExpr expression * @param varName * @param varExpr * @throws XPathParseException */ public void declareVariableExpr(String varName, String varExpr) throws XPathParseException { try{ parser p = new parser(new StringReader(varExpr)); p.nsHash = nsHash; p.symbolHash = symbolHash; xpe = (Expr) p.parse().value; symbolHash.put(varName, xpe); ft = true; }catch(XPathParseException e){ System.out.println("Syntax error after or around the end of ==>"+varExpr.substring(0,e.getOffset())); throw e; }catch(Exception e){ throw new XPathParseException("Error occurred"); } }
/** * Create AutoPilot and declare namespaces on it. * @param xpathExpr xpath expression for the AutoPilot * @return the AutoPilot * @throws XPathParseException */ private AutoPilot acquireAutoPilot(String xpathExpr) throws XPathParseException { AutoPilot ap = compiledXPaths.remove(xpathExpr); if (ap == null) { ap = new AutoPilot(nav); if (config.isNamespaceAware()) { ap.declareXPathNameSpace("xml", "http://www.w3.org/XML/1998/namespace"); // builtin for (Entry<String, String> e: config.getNamespaces().entrySet()) { ap.declareXPathNameSpace(e.getKey(), e.getValue()); } } try { ap.selectXPath(xpathExpr); } catch (XPathParseException e) { throw new RuntimeException("Error in XPath expression " + xpathExpr + " : " + e.getMessage(), e); } } else { ap.resetXPath(); } autoPilotsInUse.put(ap, xpathExpr); return ap; }
e.printStackTrace(); } catch (XPathParseException e) { e.printStackTrace(); } catch (VTDException e) { e.printStackTrace();
public void report_fatal_error(String message, Object info) throws XPathParseException{ throw new XPathParseException("Syntax error during parsing: "+ message); }
/** * Register the binding between a variableExpr name and variableExpr expression * @param varName * @param varExpr * @throws XPathParseException */ public void declareVariableExpr(String varName, String varExpr) throws XPathParseException { try{ parser p = new parser(new StringReader(varExpr)); p.nsHash = nsHash; p.symbolHash = symbolHash; xpe = (Expr) p.parse().value; symbolHash.put(varName, xpe); ft = true; }catch(XPathParseException e){ System.out.println("Syntax error after or around the end of ==>"+varExpr.substring(0,e.getOffset())); throw e; }catch(Exception e){ throw new XPathParseException("Error occurred"); } }
public void report_fatal_error(String message, Object info) throws XPathParseException{ throw new XPathParseException("Syntax error during parsing: "+ message); }
/** * Register the binding between a variableExpr name and variableExpr * expression * * @param varName * @param varExpr * @throws XPathParseException */ public void declareVariableExpr(String varName, String varExpr) throws XPathParseException { try { parser p = new parser(new StringReader(varExpr)); p.nsHash = nsHash; p.symbolHash = symbolHash; xpe = (Expr) p.parse().value; symbolHash.put(varName, xpe); ft = true; } catch (XPathParseException e) { System.out.println("Syntax error after or around the end of ==>" + varExpr.substring(0, e.getOffset())); throw e; } catch (Exception e) { throw new XPathParseException("Error occurred"); } }
public void report_fatal_error(String message, Object info) throws XPathParseException{ throw new XPathParseException("Syntax error during parsing: "+ message); }
/** * This method selects the string representing XPath expression * Usually evalXPath is called afterwards * @param s * @throws XPathParseException */ public void selectXPath(String s) throws XPathParseException { try{ parser p = new parser(new StringReader(s)); p.nsHash = nsHash; p.symbolHash = symbolHash; xpe = (com.ximpleware.Expr) p.parse().value; ft = true; if (enableCaching) xpe.markCacheable(); }catch(XPathParseException e){ System.out.println("Syntax error after or around the end of ==>"+s.substring(0,e.getOffset())); throw e; }catch(Exception e){ throw new XPathParseException("Error occurred"); } }
public void report_fatal_error(String message, Object info) throws XPathParseException{ throw new XPathParseException("Syntax error during parsing: "+ message); }
/** * This method selects the string representing XPath expression Usually * evalXPath is called afterwards * * @param s * @throws XPathParseException */ public void selectXPath(String s) throws XPathParseException { try { parser p = new parser(new StringReader(s)); p.nsHash = nsHash; p.symbolHash = symbolHash; xpe = (com.ximpleware.Expr) p.parse().value; ft = true; if (enableCaching) xpe.markCacheable(); } catch (XPathParseException e) { System.out.println("Syntax error after or around the end of ==>" + s.substring(0, e.getOffset())); throw e; } catch (Exception e) { throw new XPathParseException("Error occurred"); } }
public void report_fatal_error(String message, Object info) throws XPathParseException{ throw new XPathParseException("Syntax error during parsing: "+ message); }
/** * This method selects the string representing XPath expression * Usually evalXPath is called afterwards * @param s * @throws XPathParseException */ public void selectXPath(String s) throws XPathParseException { try{ parser p = new parser(new StringReader(s)); p.nsHash = nsHash; p.symbolHash = symbolHash; xpe = (com.ximpleware.Expr) p.parse().value; ft = true; if (enableCaching) xpe.markCacheable(); }catch(XPathParseException e){ System.out.println("Syntax error after or around the end of ==>"+s.substring(0,e.getOffset())); throw e; }catch(Exception e){ throw new XPathParseException("Error occurred"); } }
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{ Yylex scanner = (Yylex)getScanner(); throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset()); }
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{ XSLScanner scanner = (XSLScanner)getScanner(); throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset()); }
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{ Yylex scanner = (Yylex)getScanner(); throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset()); }
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{ XSLScanner scanner = (XSLScanner)getScanner(); throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset()); }
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{ XSLScanner scanner = (XSLScanner)getScanner(); throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset()); }
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseException{ Yylex scanner = (Yylex)getScanner(); throw new XPathParseException("XPath Syntax error: "+cur_token, scanner.getOffset()); }