WIP add example tag implementation

@mvriel i just made a rough thought about an implementation of the example tag. i did not notice your heavy changes inside the xml writer so i will make some changes there. in the meantime you could give me a hint if this solution would be helpful and if which changes you see there ad hoc? greetings siad