try {
page = new Page(in, null);
} catch (final UnsupportedEncodingException e) {
throw new ScimpiException(e);
}
final Lexer lexer = new Lexer(page);
Node node = null;
try {
Stack<Snippet> tags = allTags;
String lineNumbers = "1";
String template = null;
tags.push(new HtmlSnippet(lineNumbers, filePath));
// NOTE done like this the tags can be cached for faster processing
while ((node = lexer.nextNode()) != null) {
if (node instanceof Remark) {
// TODO need to pick up on comments within tags; at the moment this splits a tag into two causing a
// failure later
continue;