Examples of OMProcessingInstruction


Examples of org.apache.axiom.om.OMProcessingInstruction

  public String[] getProcessingInstruction(String target) {
    List<String> values = new ArrayList<String>();
    for (Iterator i = getChildren(); i.hasNext();) {
      OMNode node = (OMNode) i.next();
      if (node.getType() == OMNode.PI_NODE) {
        OMProcessingInstruction pi = (OMProcessingInstruction) node;
        if (pi.getTarget().equalsIgnoreCase(target))
          values.add(pi.getValue());
      }
    }
    return values.toArray(new String[values.size()]);
  }
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.