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()]);
}