* @param endLine int the expected end line number of the tag
* @throws ParserException 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.setNodeFactory (new PrototypicalNodeFactory (new CustomTag ()));
parseAndAssertNodeCount(numNodes);
assertType("custom node",CustomTag.class,node[useNode]);
CustomTag tag = (CustomTag)node[useNode];
assertEquals("start line", expectedStartLine, tag.getStartingLineNumber ());
assertEquals("end line", expectedEndLine, tag.getEndTag ().getEndingLineNumber ());