* if there is an exception during parsing
*/
private void testLineNumber(String xml, int numNodes, int useNode, int expectedStartLine, int expectedEndLine)
throws ParserException {
createParser(xml);
parser.addScanner(new CustomScanner());
parseAndAssertNodeCount(numNodes);
assertType("custom node", CustomTag.class, node[useNode]);
CustomTag tag = (CustomTag) node[useNode];
assertEquals("start line", expectedStartLine, tag.tagData.getStartLine());
assertEquals("end line", expectedEndLine, tag.tagData.getEndLine());