Examples of XPath


Examples of org.eclipse.wst.xml.xpath2.processor.ast.XPath

     */
    protected XPath compileXPathStr(String xpathStr,
                                    XSAssertImpl assertImpl,
                                    XSDHandler fSchemaHandler) {       
        XPathParser xpp = new JFlexCupParser();
        XPath xp = null;
       
        try {
            xp = xpp.parse("boolean(" + xpathStr + ")");
        } catch (XPathParserException ex) {
            // error compiling XPath expression
View Full Code Here

Examples of org.geotools.data.complex.filter.XPath

            setPropertyNames(query.getProperties());
        } else {
            setPropertyNames(null); // we need the actual property names (not surrogates) to do
                                    // this...
        }
        xpathAttributeBuilder = new XPath();
        xpathAttributeBuilder.setFeatureFactory(attf);
        initialiseSourceFeatures(mapping, unrolledQuery, query.getCoordinateSystemReproject());
        xpathAttributeBuilder.setFilterFactory(namespaceAwareFilterFactory);
    }
View Full Code Here

Examples of org.jaxen.XPath

    this.detectXmlNamespaces = detectXmlNamespaces;
  }
 
  protected XPath getXPath(Node contextNode, String expression) throws JRException
  {
    XPath xPath = (XPath) cachedXPaths.get(expression);
    if (xPath == null)
    {
      try
      {
        xPath = new DOMXPath(expression);
View Full Code Here

Examples of org.jaxen.XPath

 
  public NodeList selectNodeList(Node contextNode, String expression) throws JRException
  {
    try
    {
      XPath xpath = getXPath(contextNode, expression);
      Object object = xpath.evaluate(contextNode);
      List nodes;
      if (object instanceof List)
      {
        nodes = (List) object;
      }
View Full Code Here

Examples of org.jaxen.XPath

  public Object selectObject(Node contextNode, String expression) throws JRException
  {
    try
    {
      XPath xpath = getXPath(contextNode, expression);
      Object object = xpath.evaluate(contextNode);
      Object value;
      if (object instanceof List)
      {
        List list = (List) object;
        if (list.isEmpty())
View Full Code Here

Examples of org.jaxen.XPath

    List nlist;
    String namespaceXPathString = "//namespace::node()";

    try
    {
      XPath xpath = new DOMXPath(namespaceXPathString);
      nlist = xpath.selectNodes(contextNode);
     
            for (int i = 0; i < nlist.size(); i++)
            {
                Node node = (Node)nlist.get(i);
                if(node.getParentNode() != null && node.getParentNode().getPrefix() != null)
View Full Code Here

Examples of org.jaxen.XPath

  {
  }
 
  protected XPath getXPath(String expression) throws JRException
  {
    XPath xPath = (XPath) cachedXPaths.get(expression);
    if (xPath == null)
    {
      try
      {
        xPath = new DOMXPath(expression);
View Full Code Here

Examples of org.jaxen.XPath

 
  public NodeList selectNodeList(Node contextNode, String expression) throws JRException
  {
    try
    {
      XPath xpath = getXPath(expression);
      Object object = xpath.evaluate(contextNode);
      List nodes;
      if (object instanceof List)
      {
        nodes = (List) object;
      }
View Full Code Here

Examples of org.jaxen.XPath

  public Object selectObject(Node contextNode, String expression) throws JRException
  {
    try
    {
      XPath xpath = new DOMXPath(expression);
      Object object = xpath.evaluate(contextNode);
      Object value;
      if (object instanceof List)
      {
        List list = (List) object;
        if (list.isEmpty())
View Full Code Here

Examples of org.jaxen.dom.XPath

     * @return The first node found that matches the XPath, or null.
     */
    public Node selectSingleNode(Node contextNode, String str)
    {
        try {
            XPath path = new XPath(str);
            return (Node)path.selectSingleNode((Object)contextNode);
        } catch (Exception e){
            // ignore it
        }
        return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.