As the title says, I'm trying to match a non-standard StartTagType in the form <foo:bar ...>
How do I do this with Jericho?
Edit
I created the following custom StartTagType:
PrimoResultStartTagType primoSTT = new PrimoResultStartTagType("search", "<sear:DOC", ">", EndTagType.NORMAL, false, true, true);
... and:
class PrimoResultStartTagType extends StartTagType {
protected PrimoResultStartTagType(String arg0, String arg1, String arg2, EndTagType arg3, boolean arg4, boolean arg5, boolean arg6) {
super(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
}
@Override
protected Tag constructTagAt(Source arg0, int arg1) {
return null;
}
}
However, when I do a source.getAllElements(...), I don't get any matches.
Karan source
share