Text Serializer

There are occasions where it is useful to output pure text. For this the TextSerializer is used.

<map:components> ... <map:serializers default="xml"> <map:serializer name="text" src="resource://lib/serialization/TextSerializer"/> </map:serializers> </map:components> <map:pipelines> <map:pipeline> <map:match pattern="*.html"> <!-- generate --> <!-- some transformations --> <map:serialize type="text"/> </map:match> </map:pipeline> </map:pipelines>

The output from this would be the text content from all the DOM document tags.

Copyright 2006 – 2023 Hugh Field-Richards. All Rights Reserved.