doc.addAttribute(descriptor, "test2");//$NON-NLS-1$
descriptor = NodeDescriptor.createNodeDescriptor("Child", null, true, null, null, null,false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
for (int i = 0; i < 50; i++) {
doc.addElement(descriptor, "test content");//$NON-NLS-1$
}
doc.moveToParent();
doc.markAsFinished();
//char[] chunk = doc.getNextChunk(10);
//System.out.println("Got chunk " + j + " length="+chunk.length);//$NON-NLS-1$ //$NON-NLS-2$
//System.out.println("Total processing time = " + (System.currentTimeMillis() - startTime) + " Total elements added " + i); //$NON-NLS-1$ //$NON-NLS-2$
//System.out.println(chunk);