Thank you very much Steven,
Right now I constructed the 'hello world' stax pipeline and began to examine 
the mentioned 'ExampleComplexTransformer' and slowly bending my head around 
this whole stuff ;-)
Correct me if I am wrong but stax and sax 'PipelineComponent' are fundamentally 
different, in case of stax, the core of transformer is method 'produceEvents' 
where there is code like this:

        if (getParent().hasNext()) {
                XMLEvent event = getParent().nextEvent();
                addEventToQueue(event);
        }

You are right about my further questions ;-) After I constructed above 
mentioned pipeline and inserted a DummyTransformer with above code block 
together with
        System.out.println(event);
on the output I see all my (DummyTransformer) output followed with 
XMLSerializer output, and I am a bit puzzled, as if whole pipeline buffers 
events and on the end it bursts them trough a XMLSerializer ?
Up to now I think that my solution would be to make a BatchingTransformer which 
pass-trough the events until it reaches InSubtreeNavigator.fulfillsCriteria 
then it starts batching reading the events until it reaches fulfillsCriteria 
false then it gives buffered Queue <XMLEvent> events to rewriter after that it 
enqueue those resulting events via addAllEventsToQueue of my transformer... 
What do you think is it dumb approach or what ?
Also I need to fiddle with XMLInputFactory properties (you know 
isValidating,isCoalescing...) and maybe later use non-default XMLInputFactory 
(woodstox) is it possible ?
Thanks for you patience...


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to