URLCollection coll, String encoding) throws HTMLParseException {
try {
String contents = new String(html,encoding);
Document doc = Jsoup.parse(contents);
JMeterNodeVisitor nodeVisitor = new JMeterNodeVisitor(new URLPointer(baseUrl), coll);
new NodeTraversor(nodeVisitor).traverse(doc);
return coll.iterator();
} catch (Exception e) {
throw new HTMLParseException(e);
}
}