コード例 #1
0
  /**
   * Get the XML of the first element matched by xpath and within the experiment range.
   *
   * @param xpath xpath to find the element.
   * @return String XML string matched.
   */
  private String getFirstXmlString(String xpath) {
    String xml = null;

    Iterator<String> xmlStrs = indexer.getXmlStringIterator(xpath);

    if (xmlStrs != null && xmlStrs.hasNext()) {
      xml = xmlStrs.next();
    }
    return xml;
  }
コード例 #2
0
 /**
  * @param xpath
  * @return
  */
 public Iterator<String> getPrideXmlEntries(String xpath) {
   return indexer.getXmlStringIterator(xpath);
 }