"/org/apache/cocoon/stax/sample/stax-test-document-nestedDifferent.xml").openStream();
ByteArrayOutputStream out = new ByteArrayOutputStream();
Pipeline<StAXPipelineComponent> pipe = new NonCachingPipeline<StAXPipelineComponent>();
pipe.addComponent(new XMLGenerator(input));
XMLEventFactory factory = XMLEventFactory.newInstance();
List<Attribute> atts = new ArrayList<Attribute>();
atts.add(factory.createAttribute("attribute", "bad"));
StartEndElementPairModificationTransformer modifier = new StartEndElementPairModificationTransformer(
"anyelement", atts, "somethingdifferent", new ArrayList<Attribute>());