Package org.apache.abdera.parser.stax

Examples of org.apache.abdera.parser.stax.FOMXPath


    XPath xpath = abdera.getXPath();
    System.out.println(xpath.valueOf("abdera:resolve(/a:feed/a:entry/a:link/@href)",feed));
   
   
    // You can add your own xpath functions.
    FOMXPath fxpath = (FOMXPath) xpath;
    Map<QName,Function> functions = fxpath.getDefaultFunctions();
    functions.put(AlternateLinkFunction.QNAME, new AlternateLinkFunction());
    fxpath.setDefaultFunctions(functions);
    List<Link> links =
      fxpath.selectNodes(
        "abdera:altlinks(/a:feed/a:entry)",
        feed);
    System.out.println(links);
  }
View Full Code Here


        XPath xpath = abdera.getXPath();
        System.out.println(xpath.valueOf("abdera:resolve(/a:feed/a:entry/a:link/@href)", feed));

        // You can add your own xpath functions.
        FOMXPath fxpath = (FOMXPath)xpath;
        Map<QName, Function> functions = fxpath.getDefaultFunctions();
        functions.put(AlternateLinkFunction.QNAME, new AlternateLinkFunction());
        fxpath.setDefaultFunctions(functions);
        List<Link> links = fxpath.selectNodes("abdera:altlinks(/a:feed/a:entry)", feed);
        System.out.println(links);
    }
View Full Code Here

    XPath xpath = abdera.getXPath();
    System.out.println(xpath.valueOf("abdera:resolve(/a:feed/a:entry/a:link/@href)",feed));
   
   
    // You can add your own xpath functions.
    FOMXPath fxpath = (FOMXPath) xpath;
    Map<QName,Function> functions = fxpath.getDefaultFunctions();
    functions.put(AlternateLinkFunction.QNAME, new AlternateLinkFunction());
    fxpath.setDefaultFunctions(functions);
    List<Link> links =
      fxpath.selectNodes(
        "abdera:altlinks(/a:feed/a:entry)",
        feed);
    System.out.println(links);
  }
View Full Code Here

TOP

Related Classes of org.apache.abdera.parser.stax.FOMXPath

Copyright © 2018 www.massapicom. 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.